> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/courseware/electric-courseware/power-electronics/dc-to-dc-converters/buck-converter/operating-principle.md).

# Operating Principle

## Introduction <a href="#operating-principle" id="operating-principle"></a>

**The operating principle of the buck-boost converter is as follows:**

1. **ON state:** When the power switch is turned on, the input voltage source is applied directly across the inductor (**L**), causing the inductor to store energy in its magnetic field. During this interval, the output capacitor (**C**) supplies the current required by the load.
2. **OFF state:** When the power switch is turned off, the energy stored in the inductor is released through the diode to the output capacitor and the load (**R**). As a result, energy is transferred from the inductor to both the capacitor and the load.

By continuously storing energy in the inductor during the ON state and releasing it during the OFF state, the converter can generate an output voltage that is either higher or lower than the input voltage in magnitude, with the output polarity inverted relative to the input.

Compared to the [**buck**](http://en.wikipedia.org/wiki/Buck_converter) and [**boost**](http://en.wikipedia.org/wiki/Boost_converter) converters, the characteristics of the buck–boost converter are mainly:

* The polarity of the output voltage is opposite to that of the input.
* The output voltage can vary continuously from 0 to -∞ (for an ideal converter).\
  The output voltage ranges for a buck and a boost converter are respectively 0 to V<sub>d</sub> and V<sub>d</sub> to -∞.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FXaboJeiTmaoFvUiWnZui%2Fimage.png?alt=media&amp;token=35f7bce8-5e9a-47b0-a9b7-04e01d7b9b33" alt=""><figcaption><p><strong>Figure 16</strong>: Buck-Boost Converter</p></figcaption></figure>

With:

* V<sub>d</sub>: Input voltage
* i<sub>d</sub>: Input current
* V<sub>D</sub>: Output voltage
* i<sub>o</sub>: Output current
* i<sub>L</sub>: Inductor current
* V<sub>L</sub>: Inductor voltage

## Continuous Conduction Mode <a href="#continuous-conduction-mode" id="continuous-conduction-mode"></a>

In continuous conduction mode, the buck-boost converter assumes **two states per switching cycle**.

### State 1 <a href="#state-1" id="state-1"></a>

The On state is when switch S is closed.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2FV3Akcc2YjPfdOUPA6w1d%2Fimage.png?alt=media&amp;token=24b478ee-3bef-4cb0-8d5b-9fa17e0500e1" alt=""><figcaption><p><strong>Figure 17</strong>: State 1 of a Buck-Boost Converter</p></figcaption></figure>

For the subinterval 1:  $$0\<t\<D \cdot T$$

When the switch pictured above is closed, the voltage across the inductor is:

$$
V\_L=V\_d=L \frac{d i\_L}{d t} \\\[8pt]
\Rightarrow \frac{d i\_L}{d t}=\frac{V\_d}{L}\qquad  \text {(30)}
$$

From figure 17 above :&#x20;

$$
\frac{d i\_L}{d t}=\frac{\left(\Delta i\_L\right)*{\text {closed }}}{\Delta t}=\frac{\left(\Delta i\_L\right)*{\text {closed }}}{D \cdot T}=\frac{V\_d}{L} \\\[8pt]
\Rightarrow\left(\Delta i\_L\right)\_{\text {closed }}=\frac{V\_d \cdot D \cdot T}{L} \qquad\text{(31)}
$$

### State 2 <a href="#state-2" id="state-2"></a>

The Off state is when the switch S is opened.

<figure><img src="https://4054096626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbyVjpgEQX9nfCkpYoFP%2Fuploads%2F1GWKTWzEOKtnoIM99PDk%2Fimage.png?alt=media&amp;token=02f42e22-e081-4f01-87f3-69022765e436" alt=""><figcaption><p><strong>Figure 18</strong>: State 2 of a Buck-Boost Converter</p></figcaption></figure>

Therefore, the energy stored in L increases during On-state and then decreases during the Off-state.\
L is used to transfer energy from the input to the output of the converter.

&#x20;For the subinterval 2: $$D \cdot T \<t < T$$

When the switch is opened, the diode is forward biased. Current flows through the diode and the voltage across the inductor is:

$$
V\_L=V\_o=L \frac{di\_L}{d t} \\\[8pt]
\Rightarrow \frac{d i\_L}{d t}=-\frac{V\_o}{L} \qquad\text{(32)}
$$

From figure 18 above:

$$
\frac{d i\_L}{d t}=\frac{\left(\Delta i\_L\right)*{\text {opened }}}{\Delta t}=\frac{\left(\Delta i\_L\right)*{\text {opened }}}{(1-\mathrm{D}) \cdot \mathrm{T}}=\frac{V\_o}{L} \\\[8pt]
\Rightarrow\left(\Delta i\_L\right)\_{\text {opened }}=\frac{V\_o \cdot(1-D) \cdot T}{L} \qquad\text{(33)}
$$

The energy is stored in the inductor when the switch is closed and transferred to the load when switch is opened. As the energy in an inductor is given by:

$$
E=\frac{1}{2} \cdot L \cdot i\_L^2  \qquad\text{(34)}
$$

It’s obvious that the value of $$i\_L$$ at the end of the OFF state must be the same with the value ofat the beginning of the ON state; it means that the sum of the variations of $$i\_L$$ during the ON and the OFF states must be zero.\
So, we can write based on the above equations:

$$
(\Delta i\_L)*{\text {opened }}+(\Delta i\_L)*{\text {closed }}=0
$$

Substituting $$(\Delta i\_L)*{opened}$$ and $$(\Delta i\_L)*{closed}$$ by their expressions, we obtain:

$$
\frac{V\_d \cdot D \cdot T}{L}+\frac{V\_o \cdot(1-D) \cdot T}{L} =0 \\\[8pt]
\Rightarrow V\_0=-V\_d \cdot\left(\frac{D}{1-D}\right) \qquad\text{(35)} \\\[8pt]
\Rightarrow D=\left(\frac{V\_0}{V\_o-V\_d}\right)  \qquad \qquad\text{(36)}
$$

{% hint style="info" %}
The output of a buck-boost converter is either higher or lower than the source voltage.

* If D>0.5: the output is higher (a boost converter)
* If D<0.5: the output is lower (a buck converter)
  {% endhint %}

The output voltage is always negative. It’s never directly connected to the load.

We assume that there is no power loss in the converter, so the power absorbed by the load must equal the power supplied by the source, so we can write:

$$
V\_o \cdot i\_o=V\_d \cdot i\_d \\\[8pt]
\frac{V\_o^2}{R}=V\_d \cdot i\_d \quad \text{(37)}
$$

Unlike in a buck converter, the average inductor current in a buck-boost converter is not equal to the output current. To establish the relationship between the inductor current and the output current, consider Figure 18. The inductor delivers energy to the output only during the OFF interval of the switching cycle, when current flows through the output diode. The average value of this current over one complete switching cycle is equal to the output current, since the average current flowing through the output capacitor must be zero under steady-state conditions.

The relationship between the average inductor current and the output current for the continuous mode buck-boost power stage is given by:

$$
i\_L \cdot(1-D)=-i\_o \\
\Rightarrow i\_L=\frac{-i\_o}{(1-D)}=\frac{i\_d}{D}  \quad\text{(38)}
$$

By using equation (37):

$$
i\_L=\frac{V\_o{ }^2}{V\_d \cdot R \cdot D}=\frac{P\_o}{V\_d \cdot D}=\frac{V\_d \cdot D}{R \cdot(1-D)^2} \quad\text{(39)}
$$

The maximum value of inductor current is:

$$
i\_{L m a x}=i\_L+\frac{\Delta i\_L}{2}=\frac{V\_d \cdot D}{R \cdot(1-D)^2}+\frac{V\_d \cdot D \cdot T}{2 L}  \quad\text{(40)}
$$

The minimum value of inductor current is:

$$
i\_{L \min }=i\_L-\frac{\Delta i\_L}{2}=\frac{V\_d \cdot D}{R \cdot(1-D)^2}-\frac{V\_{d} \cdot D \cdot T}{2 L} \quad\text{(41)}
$$

The average inductor current is proportional to the output current, and since the inductor ripple current, $$\Delta i\_L$$ is independent of output load current, the minimum and the maximum values of the inductor current track the average inductor current exactly.

We assure continuous conduction mode when $$i\_{L \text{min}} \geq 0$$&#x20;

$$
\frac{V\_d \cdot D}{R \cdot(1-D)^2}-\frac{V\_d \cdot D \cdot T}{2 L} \geq 0 \\
\Rightarrow L \geq L\_{\min }=\frac{(1-D)^2 \cdot R}{2 \cdot f}  \qquad\text{(42)}
$$


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/courseware/electric-courseware/power-electronics/dc-to-dc-converters/buck-converter/operating-principle.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
