Skip to content

PWM Duty Cycle to Motor Voltage

Convert PWM duty cycle to effective motor voltage, calculate no-load speed and stall current for DC motor PWM control.

Average-voltage PWM model · V_eff = D·V_s · n₀ = K_v·V_effAPI slug pwm-duty-cycle-motor

Sign in to saveSave

Inputs

Example

100 mV or more

%

0 to 100 %

Speed per volt at no load
RPM/V

1 RPM/V or more

10 mΩ or more

Results

Live

Effective Voltage 9 V

Effective VoltageVeff
9V
No-Load Speedn₀
900RPM
Stall CurrentIs
6APASS
Peak Power (stall)Ps
54W
PWM Voltage FactorΔV
2.25V

Effective Voltage against Duty Cycle

0246810120 %20 %40 %60 %80 %100 %V

Drag the operating point or type a value.

Formula

Veff=Vs×D,n0=Veff×KvV_{eff} = V_s × D,\quad n₀ = V_{eff} × Kv
SymbolQuantityYour value
DDuty cycle (0–1)75.0 %
KvMotor speed constant (RPM/V)100 RPM/V
With your inputs
V_eff = 12 V × 75.0 %9 V
n₀ = V_eff × 100 RPM/V900 RPM
I_stall = V_eff / 1.5 Ω6 A

Assumptions

5 items
  1. 01The motor responds to the average voltage, V_eff = D·V_supply: the PWM frequency is high enough that the current is continuous.
  2. 02Ideal switches: no transistor or diode drop, dead time or switching loss.
  3. 03No-load speed is K_v·V_eff, ignoring friction and no-load current.
  4. 04Stall current is V_eff/R at standstill and peak power is V_eff × I_stall, with no current limit and a constant winding resistance.
  5. 05The PWM voltage factor is V·D(1 − D), the numerator of the current ripple ΔI = V·D(1 − D)/(L·f); inductance and frequency are not inputs, so the ripple itself is not computed.

Worked example

36 V motor at 40 % duty, 20 kHz PWM

A 36 V DC motor with K_v = 83.3 RPM/V and 0.8 Ω winding resistance runs at 40 % duty from a 36 V bus. Its inductance is 5 mH and the PWM runs at 20 kHz.

StepExpressionResult
Effective voltage40 % × 36 V14.4 V
No-load speed14.4 V × 83.3 RPM/V1 200 RPM
Stall current14.4 V / 0.8 Ω18 A
PWM voltage factor36 V × 40/100 × (1 − 40/100)8.64 V
Current ripple at 20 kHz8.64 V / (5 mH × 20 kHz)0.086 A

How it works

This calculator determines PWM duty cycle, average voltage, and timing parameters for [DC motor speed](/calculators/motor/dc-motor-speed/) control. Embedded systems engineers, robotics programmers, and motor control designers use it to configure microcontroller timers for precise speed regulation. PWM enables efficient speed control—linear voltage regulators waste 30-60% of power as heat, while PWM switching achieves 90-98% efficiency.

Per motor control fundamentals (Krishnan, 'Electric Motor Drives'), duty cycle D represents the fraction of time the supply is connected: V_avg = D × V_supply. For a given load, motor speed is approximately proportional to average voltage within the linear operating region. The PWM frequency must balance two constraints: high enough to exceed audible range (>18-20 kHz per human hearing limits) and low enough to limit switching losses (<50 kHz for typical motor drivers).

Current ripple depends on motor inductance and PWM frequency: ΔI = V × D × (1-D) / (L × f). Per Texas Instruments motor control guidelines, current ripple should be <20% of DC current to minimize additional copper losses. A 24V motor with 2 mH inductance at 20 kHz and 50% duty exhibits ΔI = 24×0.5×0.5/(0.002×20000) = 0.15A ripple—acceptable for a 1A+ motor. Lower frequencies or lower inductances require LC filtering or acceptance of higher ripple losses.

Practical tips

  • Per EMC guidelines, select PWM frequency above 20 kHz for noise-free operation; many 3D printer and CNC controllers use 25 kHz as a standard that balances audible noise elimination with acceptable switching losses
  • For high-side MOSFET driving, use bootstrap gate drivers (IR2104, IR2184) that generate V_gate = V_supply + 10-15V for full enhancement—logic-level MOSFETs require V_gs > V_supply for saturation
  • Per thermal management guidelines, monitor motor temperature during extended low-duty-cycle operation: reduced speed means reduced self-cooling from shaft-mounted fans, potentially causing 30-50% higher temperature rise

Common mistakes

  • Using PWM frequency below 1 kHz: Per motor control practice, frequencies <1 kHz cause audible whining at 80-100 dB and current ripple >50% that increases copper losses by 25%+ and accelerates brush wear in brushed motors
  • Ignoring minimum duty cycle threshold: Per motor physics, below 10-20% duty cycle, average voltage may be insufficient to overcome static friction—motor draws stall current without rotating, wasting power as heat
  • Driving MOSFET gates directly from GPIO: Per gate driver requirements, PWM transitions require 1-10A peak gate current for fast switching; GPIO pins rated 10-25 mA cause slow transitions (100-500 ns vs. 10-50 ns), increasing switching losses 5-10×

Frequently asked questions

3 questions
Why does my motor hum or vibrate at certain PWM frequencies?

Per vibration analysis fundamentals: Motor mechanical resonance (typically 50-200 Hz) can couple with PWM fundamental or harmonics. The motor acts as a speaker, converting electrical pulses to acoustic vibration. Solutions: (1) Operate above 18-20 kHz where harmonics exceed audible range; (2) Use spread-spectrum PWM that distributes energy across frequencies; (3) Add LC filtering to smooth current waveform. Most complaints occur at 1-5 kHz where the fundamental is loudest.

Does PWM frequency affect motor efficiency?

Yes—two competing effects per power electronics analysis: (1) Higher frequency reduces current ripple, decreasing I²R losses by 2-10% at typical operating points; (2) Higher frequency increases MOSFET switching losses proportionally (P_sw ∝ f). Optimal frequency depends on motor inductance and driver characteristics—typically 15-25 kHz for brushed motors, 10-20 kHz for BLDC. Above 30 kHz, switching losses dominate for most drivers, reducing system efficiency.

What is the relationship between duty cycle and actual motor speed?

Per motor fundamentals: Relationship is approximately linear for light-to-moderate loads but deviates significantly under heavy load due to I×R_a voltage drop. At 50% duty cycle with 10% armature resistance ratio, actual speed may be 45% of no-load. For precise speed control, implement closed-loop feedback using encoder or back-EMF sensing—PID controllers typically achieve ±0.5-2% speed regulation versus ±10-20% for open-loop PWM.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

  • NEMA 17 Stepper MotorNEMA 17 bipolar stepper motors for precision motion controlAmazon →
  • Stepper Motor Driver (A4988)A4988 stepper driver modules for microstepping controlAmazon →
  • DC Motor with Encoder12 V DC motors with encoders for closed-loop drive applicationsAmazon →