The average voltage formula calculates the arithmetic mean of a varying voltage over one complete cycle. For a full-wave rectified sine wave, the formula is Vavg = (2 × Vp) / π (approximately 0.637 × Vp). For a pulsed DC or PWM signal, the formula is Vavg = Vpeak × D. Pure AC sine waves centered on zero have an average voltage of exactly 0V over a full cycle, which is why this formula is strictly applied to rectified or unidirectional pulsed waveforms in practical electronics.
The Average Voltage Formula: Core Equations and Symbol Definitions
Before applying the math, we must separate the two primary domains where average voltage matters: power supply rectification (AC to DC) and microcontroller motor control (PWM). The underlying calculus integrates the area under the voltage curve over time, divided by the period. According to standard AC circuit theory, the integration of a sine wave from 0 to π yields the 2/π constant.
| Symbol | Definition | Standard Unit | Notes & Constraints |
|---|---|---|---|
| Vavg | Average Voltage | Volts (V) | The DC equivalent heating value for purely resistive loads over time. |
| Vp | Peak Voltage | Volts (V) | Maximum amplitude from zero. Not to be confused with Peak-to-Peak (Vpp). |
| π | Pi (Mathematical Constant) | Dimensionless | Use 3.14159... or the 0.6366 multiplier approximation. |
| Vpeak | PWM High-State Voltage | Volts (V) | The supply rail voltage when the MOSFET is fully enhanced. |
| D | Duty Cycle | Ratio (0 to 1) | Calculated as Ton / Ttotal. Must be a decimal, not a percentage. |
| Ton | Pulse On-Time | Seconds (s) | Duration the signal remains at Vpeak per cycle. |
| Ttotal | Total Period | Seconds (s) | The inverse of frequency (1/f). |
When to Apply Which Equation (Decision Path)
Using the wrong average voltage formula is a common bench mistake. Follow this decision tree to identify your signal type and select the correct mathematical model.
| Signal Type | Condition / Waveform Shape | Formula to Use | Realistic Magnitude Example | Default Action |
|---|---|---|---|---|
| Pure Sine Wave (AC) | Symmetrical above and below 0V | Vavg = 0V | 120V AC Mains = 0V average | Stop. Calculate RMS instead. |
| Half-Wave Rectified | Only positive half-cycles pass | Vavg = Vp / π | 12V AC transformer → 5.4V DC | Use for simple, low-current trickle chargers. |
| Full-Wave Rectified | Negative halves flipped positive | Vavg = (2 × Vp) / π | 12V AC transformer → 10.8V DC | Standard for DC power supply bridge rectifiers. |
| PWM (Square Wave) | Unidirectional pulses (0V to Vpeak) | Vavg = Vpeak × D | 12V fan at 65% duty → 7.8V | Use for microcontroller motor/LED dimming. |
Worked Examples with Strict Unit Tracking
Abstract math fails on the workbench. Here are two physical scenarios with explicit unit tracking to ensure dimensional consistency.
Problem 1: Full-Wave Rectified 120V AC Mains
Scenario: You are designing a linear power supply connected directly to a US 120V AC wall outlet (nominal) through a step-down transformer and a full-wave bridge rectifier. The transformer outputs 12VRMS on its secondary side. What is the average DC voltage before the smoothing capacitor?
- Identify knowns: VRMS = 12V. Waveform = Full-wave rectified sine.
- Convert RMS to Peak: Vp = VRMS × √2
Vp = 12 [V] × 1.4142 [dimensionless] = 16.97 [V] - Apply average voltage formula: Vavg = (2 × Vp) / π
Vavg = (2 × 16.97 [V]) / 3.14159 [dimensionless] - Calculate: Vavg = 33.94 [V] / 3.14159 = 10.80 [V]
Problem 2: ESP32 PWM Driving a 12V DC Fan
Scenario: An ESP32 microcontroller generates a 5kHz PWM signal via the LEDC peripheral to drive the gate of an IRFZ44N MOSFET. The MOSFET switches a 12V DC supply to a cooling fan. The oscilloscope reads an On-Time (Ton) of 130 μs. What is the average voltage delivered to the fan?
- Identify knowns: Vpeak = 12V. f = 5000 Hz. Ton = 130 μs (0.00013 s).
- Calculate Total Period (Ttotal): Ttotal = 1 / f
Ttotal = 1 [s] / 5000 [Hz] = 0.0002 [s] (or 200 μs) - Calculate Duty Cycle (D): D = Ton / Ttotal
D = 0.00013 [s] / 0.0002 [s] = 0.65 [dimensionless ratio] - Apply PWM average voltage formula: Vavg = Vpeak × D
Vavg = 12 [V] × 0.65 = 7.8 [V]
Rearranged Forms for Solving Unknowns
When troubleshooting a circuit, you often know the desired average voltage and need to find the required component timing or transformer spec. Use these algebraically rearranged forms:
- Solve for Peak Voltage (Rectified): Vp = (Vavg × π) / 2 (or Vavg / 0.6366)
- Solve for RMS Voltage (from Rectified Avg): VRMS = (Vavg × π) / (2 × √2) (Multiply Vavg by 1.11, known as the form factor)
- Solve for Duty Cycle (PWM): D = Vavg / Vpeak
- Solve for On-Time (PWM): Ton = (Vavg × Ttotal) / Vpeak
- Solve for PWM Frequency (from On-Time): f = D / Ton
Common Unit Mistakes That Break the Math
The math is simple; the unit conversions are where designs fail. Avoid these three specific traps:
- Plugging VRMS into the Vp slot: If you calculate Vavg using 120V (the RMS wall voltage) instead of 169.7V (the peak), your result will be 76.4V instead of the correct 108V. Always convert RMS to Peak first by multiplying by √2.
- Using Percentage for Duty Cycle: The formula Vavg = Vpeak × D requires a ratio. If your microcontroller code sets a 75% duty cycle, you must use 0.75 in the formula. Plugging in '75' will yield a mathematically impossible voltage 75 times higher than your supply rail.
- Timebase Mismatches in PWM: While the units cancel out in the ratio D = Ton / Ttotal, mixing milliseconds for Ton and microseconds for Ttotal without conversion will skew your duty cycle by a factor of 1000. Always convert both to base seconds (or matching micro-seconds) before dividing.
Tool Selection: Average-Responding vs. True RMS Multimeters
Calculating the average voltage formula on paper is only half the battle; verifying it on the bench requires the correct instrument. Standard 'average-responding' multimeters (like the popular Fluke 101) are internally calibrated to multiply the measured average by 1.11 to display the RMS value of a pure sine wave. If you feed a PWM signal or a chopped AC waveform into an average-responding meter, the internal scaling math breaks, and the display will show a wildly inaccurate number.
Furthermore, measuring the DC average of a high-frequency ESP32 PWM signal with a standard DMM can result in aliasing or low-pass filter rejection if the meter's bandwidth is below the PWM frequency.
The Concrete Pick: For diagnosing both rectified power supplies and microcontroller PWM averages, default to the Fluke 87V True RMS Industrial Multimeter. When measuring PWM average voltage, switch the Fluke 87V to the DC Volts setting and press the yellow MIN/MAX button to capture the integrated average over time, bypassing the AC+DC True RMS calculation that would otherwise include the switching ripple. If your PWM frequency exceeds 5kHz and the DMM reading fluctuates, step up to a Rigol DS1054Z Oscilloscope, use the cursor measurement tool to find the exact Ton, and verify your Vavg = Vpeak × D calculation visually.






