ForHosting KIT · Developer Utilities

Buck-boost converter duty cycle calculator

This buck-boost converter duty cycle calculator finds the ideal switch duty ratio required to produce an inverting output from specified input and output voltage magnitudes.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter both values as positive magnitudes in volts, even though the physical output rail is negative relative to the input reference. The calculator applies the continuous-conduction ideal transfer relationship, reports the duty cycle as both a fraction and percentage, and also shows the requested voltage ratio. It is useful for first-pass topology selection and design checks before losses, component limits, and control margins are included.

Enter voltage magnitudes for an inverting supply

Use the input voltage available at the converter and the magnitude of the required output voltage. For example, a design converting a positive 12 V source into a negative 5 V rail should be entered as 12 for input_voltage and 5 for output_voltage. Do not enter -5, because the equation already represents an inverting topology and works with absolute magnitudes. Both numbers must be finite and greater than zero. The calculator assumes they use the same unit, and the published form labels them in volts. The result duty_cycle is a fraction between zero and one, while duty_cycle_percent is the same value multiplied by 100. A result of 0.294118 therefore means approximately 29.4118 percent of each switching period is on. This distinction matters when moving the result into a controller data sheet, simulator, spreadsheet, or firmware configuration, since those destinations may expect either a normalized fraction or a percentage. The returned voltage_ratio is |Vout| divided by |Vin| and provides a quick check on the requested conversion level.

Understand the ideal buck-boost equation

For an ideal inverting buck-boost converter operating in continuous conduction mode, the magnitude relationship is |Vout| / |Vin| = D / (1 - D). Rearranging that expression for duty cycle gives D = |Vout| / (|Vin| + |Vout|). The calculator evaluates this rearranged form directly, which avoids an iterative solver and produces a deterministic answer. If the requested output magnitude equals the input magnitude, the ideal duty cycle is 0.5. A smaller output magnitude produces a duty below 0.5, and a larger output magnitude produces a duty above 0.5. The formula describes the steady-state conversion ratio of the ideal power stage; it does not predict switching frequency, ripple, inductor current, peak switch stress, efficiency, or transient response. Continuous conduction also means the inductor current is assumed not to fall to zero during a switching period. If a real design enters discontinuous conduction at its intended load, a different transfer relationship applies and this ideal result should not be treated as the operating duty cycle.

Turn the result into a practical starting point

Treat the calculated duty cycle as a first-pass target, not as a complete converter design. Real switches, diodes, inductors, capacitors, traces, and current-sense elements introduce voltage drops and losses, so a regulated converter normally requires a somewhat different operating duty ratio. Input voltage also varies in most systems. Calculate the duty cycle at minimum, nominal, and maximum input voltage while holding the desired output magnitude constant; those three results reveal the range the controller must support. Then compare that range with the controller's minimum on-time, maximum duty-cycle limit, switching frequency, and compensation requirements. Verify semiconductor voltage and current ratings separately, because an inverting buck-boost switch can experience combined input and output stress. Inductor ripple and peak current must also be calculated for the chosen frequency and inductance. Finally, confirm the design with a component-aware simulation and bench measurements across load, temperature, and supply tolerance. The API price is $0.002 per request, while the browser calculation uses the same deterministic core for quick interactive checks.

Size an inverting rail

Estimate the nominal duty ratio for a negative analog, sensor, or interface supply derived from a positive source.

Check an input-voltage range

Calculate duty cycle at minimum, nominal, and maximum input voltage before selecting a controller.

Validate a simulation setup

Compare a simulator's ideal steady-state operating point with the closed-form inverting buck-boost relationship.

Why must output voltage be positive?

The calculator accepts the output magnitude. The topology is already understood to invert polarity, so a negative signed input is rejected.

What equation does the calculator use?

It uses D = |Vout| / (|Vin| + |Vout|), derived from the ideal continuous-conduction relationship |Vout|/|Vin| = D/(1-D).

Does the result include diode and switch losses?

No. It is an ideal first-pass result. Account for component drops, resistance, dead time, and control behavior in the practical design.

Does this apply in discontinuous conduction mode?

No. Discontinuous conduction depends on load, inductance, and switching frequency and requires a different model.

How much does an API calculation cost?

Each API request costs $0.002. The calculation can also run free in the browser.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/elec/buckboost-duty

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/elec/buckboost-duty \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input_voltage":12,"output_voltage":5}'
{
  "input_voltage": 12,
  "output_voltage": 5
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "elec.buckboost_duty",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →