The inductor in a buck converter sees different voltages during the on and off portions of each switching cycle. Each interval changes its current. In periodic steady operation, the current returns to its initial value by the end of the cycle. Volt-second balance expresses that condition and gives a practical way to calculate the peak-to-peak buck inductor ripple under stated assumptions.
Take the inductor voltage from the switch node to the output side. In an ideal buck with a steadily positive inductor current, the on interval places the switch node at the input voltage. The inductor voltage is then input minus output voltage. In the off interval the current continues through the low-side path and the ideal switch node is at ground, so the inductor voltage is minus the output voltage.
For a constant inductance, the rate of current change equals the voltage across the inductor divided by inductance. During the interval with positive voltage the current rises. During the interval with negative voltage it falls. The calculation treats the output voltage as nearly constant over one switching cycle, so the two slopes can be drawn as straight segments.
Multiply each voltage by the time for which it acts. The signed sum must vanish if the current at the end of the cycle equals the current at the start. For example, use an input of 18 volts and an output of six volts. The on interval sees plus 12 volts while the off interval sees minus six volts.
Let D be the on fraction of the switching period. The equation is 12D − 6(1 − D) = 0. It gives D equal to one third. At 300 kilohertz the switching period is about 3.333 microseconds. The on interval lasts about 1.111 microseconds and the off interval about 2.222 microseconds. Each voltage-time area has a magnitude of about 13.333 volt-microseconds.

Use an illustrative inductance of 15 microhenries. The rising slope is 12 divided by 15, or 0.8 ampere per microsecond. Multiplying by the on interval gives a current increase of about 0.889 ampere. In the off interval the slope is minus 6 divided by 15, or minus 0.4 ampere per microsecond. The longer off interval returns the current to its original value.
If the average inductor current is 2.00 amperes for this example, the peak lies half the ripple above the average and the valley lies half the ripple below it. The peak is about 2.444 amperes and the valley about 1.556 amperes. The minimum is positive, consistent with the continuous-conduction condition assumed in the estimate.

At the same voltages and duty fraction, doubling switching frequency halves both interval times. Under the same ideal assumptions and with the same inductance, the ripple becomes about 0.444 ampere peak to peak. Doubling inductance at the original frequency gives the same result in this simple calculation. Those changes can affect other properties in a real design, so record the input values used in the comparison.
When checking a trace, record the voltage direction, switching period, duty fraction, current measurement method and the load condition. Include the minimum and maximum inductor currents with the average. If the current reaches zero for part of the period, the two-interval continuous-conduction waveform is incomplete. A third interval and the actual device behavior must be included in that case.
Inductor current ripple and output voltage ripple are separate readings. The output voltage depends on how current divides between the load and output capacitor and on the capacitor's effective series resistance. A narrow band of output voltage in one trace does not specify the current swing by itself. Record which signal was measured and the units used for each ripple value.
Keep the voltage-time areas in the worksheet if a switching trace looks different from the estimate. Measured switch drops and transitions can change the area even if the nominal switching period is unchanged. Integrating the observed inductor voltage over a complete settled cycle provides a separate check on whether the plotted current is repeating over that same interval.
Use the inductance appropriate to the operating current when comparing with a component. An inductance that varies appreciably over the current swing can produce a curved ramp, even during a nearly constant voltage interval.
The steady-state converter lecture material derives the ideal buck relation from the two signed inductor-voltage areas. Principles of Steady-State Converter Analysis
The Texas Instruments application report relates inductor ripple to input and output, switching frequency, and inductance, then uses it to calculate peak current. Basic Calculation of a Buck Converter's Power Stage
See more electronics measurements in the technology section and the industry section.