ECParts Toolkit LogoECParts Toolkit

Motor PWM Average Voltage Calculator

Calculate first-order motor PWM average applied voltage for unipolar drives, custom two-level drive states, and bipolar H-bridge references. MOT-007 also solves duty cycle, PWM timing, terminal RMS voltage reference, back-EMF headroom, and a steady-state average resistive current reference.

The calculator deliberately avoids treating duty cycle as motor speed, torque, or true PWM current. Real motor behavior depends on winding inductance, current ripple, back EMF, driver topology, freewheel path, load and control loop behavior.

Engineering tool

Motor PWM Average Voltage Calculator

Calculate motor PWM average applied voltage, duty cycle, H-bridge bipolar voltage, timing, back-EMF headroom, and first-order resistive current references.

Calculation mode

Parameter panel

Result console

Average Applied Voltage
6V
Terminal RMS Voltage Reference
8.48528V
Duty Cycle
50%
Duty Fraction
0.5

The familiar Vavg = D × Vbus applies only when the on level is Vbus and the off-state voltage is 0 V.

Reference table

Motor PWM average voltage reference values
Effective On Level12V

Motor PWM Average Voltage Formula Audit

Motor PWM average voltage formula audit
Drive ModelV1 uses a two-level motor terminal applied-voltage reference.
Duty Cycle ConventionDuty D is a fraction from 0 to 1, displayed as percent when requested.
General Two-Level FormulaVavg = DVon + (1-D)Voff.
Unipolar FormulaIf Von = Vbus and Voff = 0, Vavg = D × Vbus.
Bipolar FormulaIf Von = +Vbus and Voff = -Vbus, Vavg = (2D - 1)Vbus.
Inverse Duty FormulaD = (Vavg - Voff)/(Von - Voff), requiring Von ≠ Voff and reachable target voltage.
On-State Voltage DefinitionVon is the applied motor terminal voltage during the PWM on state.
Off-State Voltage DefinitionVoff is the motor terminal voltage during off, decay, coast, brake or recirculation state.
Driver-Drop ModelFixed driver drop is a simplified effective conduction-drop reference.
PWM Period FormulaT = 1/f.
On-Time Formulaton = D × T.
Off-Time Formulatoff = (1-D) × T.
Average / RMS Voltage BoundaryTerminal RMS voltage is not winding current RMS and does not determine motor torque by itself.
Back-EMF Headroom FormulaVheadroom = Vavg - E - Vfixed.
Resistive Current ReferenceIreference ≈ (Vavg - E - Vfixed)/R.
Inductance BoundaryReal motor current depends on R, L, back EMF, PWM frequency and freewheel path.
Current-Ripple BoundaryHigher PWM frequency often reduces ripple but can increase switching loss.
Coast / Brake BoundaryCoast and brake states can have similar average voltage but different current decay.
Current-Control BoundaryCurrent-regulated drivers dynamically adjust effective PWM behavior.
PWM / Speed BoundaryDuty cycle is not a direct motor-speed percentage.
PWM / Torque BoundaryDuty cycle is not a direct motor-torque percentage.
Generic PWM Scope BoundaryMOT-007 is motor-drive average voltage and headroom, not a generic PWM or timer calculator.

Formula

Formula reference

Motor PWM average-voltage formulas

The general two-level average is the shared core formula. D×Vbus is only the common unipolar simplification.

Vavg = DVon + (1-D)VoffD = (Vavg - Voff)/(Von - Voff)Unipolar: Vavg = D × VbusBipolar: Vavg = (2D - 1)VbusT = 1/fton = D × Ttoff = (1-D) × TVrms = sqrt(DVon² + (1-D)Voff²)Vheadroom = Vavg - E - VfixedIreference ≈ Vheadroom / R

Variable definitions

D
PWM duty fraction from 0 to 1
Von
motor terminal on-state voltage
Voff
motor terminal off-state voltage
E
motor back EMF
R
winding resistance
Ireference
steady-state average resistive current reference

Motor PWM Average Voltage Formula Audit

Motor PWM average voltage formula audit
Drive ModelTwo-level motor terminal applied-voltage reference.
Duty Cycle ConventionD is internally 0 to 1.
General Two-Level FormulaVavg = DVon + (1-D)Voff.
Unipolar FormulaVavg = D × Vbus only when Von = Vbus and Voff = 0 V.
Bipolar FormulaVavg = (2D - 1)Vbus for ideal symmetric ±Vbus switching.
Inverse Duty FormulaD = (Vavg - Voff)/(Von - Voff).
On-State Voltage DefinitionVoltage across the motor terminal pair during the PWM on state.
Off-State Voltage DefinitionVoltage across the motor terminal pair during the off, decay, coast, brake or recirculation state.
Driver-Drop ModelFixed drop is a simplified effective voltage-drop reference.
PWM Period FormulaT = 1/f.
On-Time Formulaton = D × T.
Off-Time Formulatoff = (1-D) × T.
Average / RMS Voltage BoundaryAverage terminal voltage, terminal RMS voltage and winding current RMS are different quantities.
Back-EMF Headroom FormulaVheadroom = Vavg - E - Vfixed.
Resistive Current ReferenceIreference ≈ (Vavg - E - Vfixed)/R.
Inductance BoundaryThe real PWM current waveform depends on L di/dt.
Current-Ripple BoundaryPWM frequency changes ripple and switching behavior, not ideal average voltage.
Coast / Brake BoundarySame average voltage can hide different decay paths.
Current-Control BoundaryCurrent-loop drivers can decouple command duty from effective voltage.
PWM / Speed BoundaryDuty is not speed percentage.
PWM / Torque BoundaryDuty is not torque percentage.
Generic PWM Scope BoundaryMOT-007 is motor-drive average voltage and back-EMF headroom, not a generic PWM tool.

Worked Examples

Motor PWM average voltage worked examples
ExampleCalculationResult
Unipolar 12 V, 50%Vavg = 0.5 × 126 V
Unipolar 12 V, 25%Vavg = 0.25 × 123 V
Unipolar 12 V, 100%Vavg = 1 × 1212 V
Unipolar 12 V, 0%Vavg = 0 × 120 V
General Von = 12 V, Voff = 2 V, 50%0.5×12 + 0.5×27 V
Target 6 V, levels 12/0D = (6 - 0)/(12 - 0)50%
Target 15 V, levels 12/0Target outside reachable rangeRejected
Bipolar 12 V, 50%(2×0.5 - 1)×120 V
Bipolar 12 V, 75%(2×0.75 - 1)×12+6 V
Bipolar 12 V, 25%(2×0.25 - 1)×12-6 V
PWM f = 20 kHzT = 1/2000050 µs
20 kHz, 25%ton = 0.25×50 µs; toff = 0.75×50 µs12.5 µs / 37.5 µs
Vavg = 8 V, E = 6 V, R = 1 ΩIref = (8 - 6)/12 A
Vavg = 6 V, E = 6 V, R = 1 ΩIref = 0/10 A
Vavg = 4 V, E = 6 V, R = 1 ΩIref = -2/1-2 A
10 kHz vs 20 kHz same levelsSame duty and voltage levelsSame ideal average voltage
Unipolar 12 V, 25%Vrms = 12√0.256 V RMS, 3 V average
Unipolar 12 V, 50%Vrms = 12√0.58.4853 V RMS, 6 V average
Bipolar ±12 V, 25%Vrms = sqrt(0.25×12² + 0.75×12²)12 V RMS, -6 V average
Driver fixed drop 1 VEffective on level = 12 - 15.5 V average at 50%
Duty fraction 0.50.5 × 100%50%
Forward duty round-tripD → Vavg → DOriginal duty recovered
1 kHz timingf = 1000 HzT = 1 ms
Invalid f = 0T = 1/0Rejected
Bipolar 0%All negative state-Vbus
Bipolar 100%All positive state+Vbus

Engineering Notes

Motor PWM

PWM controls how long the motor terminal spends in selected voltage states.

Duty Cycle

Duty cycle is a time fraction, not a guaranteed speed, torque or current percentage.

Average Voltage

Average voltage is useful for first-order motor-drive references and back-EMF headroom.

H-Bridge

H-bridge operation can create unipolar, bipolar, coast, brake, fast-decay or slow-decay states.

Unipolar PWM

The common D×Vbus formula assumes switching between Vbus and 0 V.

Bipolar PWM

A symmetric ±Vbus drive has zero average voltage at 50% duty.

Back EMF

Back EMF reduces the voltage available to drive winding current.

Winding Resistance

Resistance sets the first-order current reference after subtracting back EMF and fixed drops.

Motor Inductance

Inductance controls current rise and decay during PWM cycles.

Current Ripple

Ripple depends on voltage, inductance, resistance, back EMF, frequency and freewheel path.

Freewheel

The off-state voltage is set by diode, synchronous rectification, recirculation and driver topology.

Coast

Coasting generally lets current decay through a different path than active braking.

Brake

Brake mode can short or clamp the motor terminals and change current decay.

PWM Frequency

Frequency affects audible noise, ripple, switching loss and control bandwidth.

RMS Voltage

Terminal RMS voltage is only a voltage waveform reference, not motor torque or winding-current RMS.

Current Control

Chopper and current-loop drivers can make duty a control output rather than a direct user command.

Common Mistakes

  • Using D×Vbus for every PWM motor drive.
  • Ignoring the off-state motor terminal voltage.
  • Using D×Vbus for bipolar H-bridge PWM.
  • Thinking 50% bipolar PWM means +50% voltage.
  • Confusing average voltage with RMS terminal voltage.
  • Assuming 50% duty means 50% motor speed.
  • Assuming 50% duty means 50% motor torque.
  • Dividing average voltage by resistance and calling it true PWM motor current.
  • Ignoring back EMF.
  • Ignoring motor winding inductance.
  • Assuming the off state is always 0 V.
  • Treating coast and brake as identical.
  • Treating driver voltage drop as a universal constant.
  • Assuming PWM frequency changes ideal average voltage at fixed duty and voltage levels.

DC Motor Back EMF Calculator

Available

Use MOT-002 for V = E + IR steady-state motor voltage, current and speed references.

Open Calculator

DC Motor Stall Current Calculator

Available

Use MOT-003 for locked-rotor current and startup stress boundaries.

Open Calculator

Motor Efficiency Calculator

Available

Use MOT-005 for motor input power, shaft output, total loss and efficiency.

Open Calculator

Motor Copper Loss Calculator

Available

Use MOT-006 for winding I²R copper loss with RMS current and hot resistance.

Open Calculator

PWM Low-Pass Filter Calculator

Available

Use the Filters tool for PWM-to-analog RC smoothing and ripple analysis.

Open Calculator

LED PWM Dimming Calculator

Available

Use the LED tool for LED brightness, PWM timing and dimming-specific behavior.

Open Calculator

MOSFET Total Power Dissipation Calculator

Available

Use MOSFET tools for motor-driver device stress and switching-device dissipation.

Open Calculator

Motor Encoder RPM Calculator

Available

Use MOT-008 for encoder PPR, CPR, quadrature counts, count frequency and RPM references.

Open Calculator

Stepper Motor Pulse Frequency Calculator

Available

Use MOT-011 for STEP command pulse frequency, pulse period, commanded RPM and stepper speed references.

Open Calculator

FAQ

Support reference

FAQ

How do I calculate motor PWM average voltage?

Use the general two-level formula Vavg = DVon + (1-D)Voff, where D is duty fraction, Von is the on-state motor terminal voltage, and Voff is the off-state voltage.

What voltage does a motor receive at 50% PWM duty cycle?

In a 12 V unipolar Vbus-to-0 V drive, 50% duty gives 6 V average. In a symmetric bipolar ±12 V H-bridge, 50% duty gives 0 V average.

Is motor voltage simply duty cycle times supply voltage?

Only for the simplified unipolar case where the on level is Vbus and the off level is 0 V. Other driver topologies can have different off-state voltages.

What is the difference between unipolar and bipolar PWM?

Unipolar PWM commonly switches between Vbus and 0 V or another off-state level. Bipolar PWM switches between positive and negative motor terminal voltage.

How do I calculate bipolar H-bridge average voltage?

For ideal symmetric +Vbus and -Vbus switching, use Vavg = (2D - 1)Vbus.

Why can the PWM off-state voltage be different from zero?

The off state depends on driver topology, freewheel path, synchronous rectification, slow decay, fast decay, coast, brake, and diode conduction.

How do I calculate PWM on-time and off-time?

Calculate period with T = 1/f, then ton = D × T and toff = (1-D) × T.

Does PWM frequency affect average motor voltage?

Not in the ideal two-level average formula when duty cycle and voltage levels are fixed. Frequency affects ripple, audible noise, switching loss, and control bandwidth.

How does PWM frequency affect motor current ripple?

Higher PWM frequency usually reduces single-cycle current ripple for the same motor inductance and voltage, but it can increase driver switching loss.

Is PWM average voltage the same as RMS voltage?

No. For unipolar 0/12 V PWM at 25% duty, average voltage is 3 V while terminal RMS voltage is 6 V.

Does 50% duty cycle mean 50% motor speed?

No. Motor speed depends on back EMF, load torque, winding current, friction, supply voltage, driver behavior, and control loop.

Does 50% duty cycle mean 50% motor torque?

No. Torque is primarily related to current, not directly to duty cycle or terminal RMS voltage.

How does back EMF affect PWM motor current?

Back EMF subtracts from the average applied voltage available to push winding current in a first-order steady-state model.

How do I estimate current from PWM average voltage?

A first-order reference is I ≈ (Vavg - E - Vfixed)/R. This is not a true PWM waveform or ripple-current calculation.

Why does motor inductance matter with PWM?

The winding inductance controls current rise and decay during each PWM cycle, so the current waveform cannot be predicted from average voltage alone.

What is the difference between coast and brake in an H-bridge?

Coast and brake can produce different recirculation paths and current-decay behavior even when an average-voltage reference appears similar.

How does driver voltage drop affect effective motor voltage?

MOSFET, diode, wiring, or driver drops reduce the effective voltage applied to the motor. V1 models this only as a fixed simplified drop.

Why do current-controlled motor drivers behave differently from simple duty-cycle control?

A current-regulated driver changes PWM behavior dynamically to regulate winding current, so command duty and effective motor voltage are not a fixed one-to-one relationship.

Engineering Disclaimer

This calculator provides first-order PWM motor-drive voltage references. Production motor-drive design should verify current waveform, inductance, driver topology, current limits, switching losses, back EMF, load torque, thermal behavior, EMI and measured operation.