SPWM Duty Cycle Calculator

Instantaneous sine-triangle PWM duty cycle at any angle, with min/max duty and pulse on-time.
Duty at Angle

Sine-Triangle Duty Cycle

d(θ) = 0.5 × (1 + ma × sinθ)
m=0.8, θ=90°
m=0.8, θ=30°
m=1.0, θ=270°
°
Hz
Enter values and press Calculate.

How Sine-Triangle (SPWM) Duty Works

In sinusoidal PWM, a low-frequency sine reference is compared against a high-frequency triangular carrier. Whenever the sine is above the carrier the top switch is on, so the duty cycle of each switching pulse follows the sine wave. Around zero-crossing the duty is 50%; at the sine peak it reaches its maximum; at the trough its minimum. The instantaneous duty is d(θ) = 0.5×(1 + ma·sinθ).

QuantityFormula
Instantaneous dutyd(θ) = 0.5(1 + ma·sinθ)
Maximum duty (θ=90°)dmax = 0.5(1 + ma)
Minimum duty (θ=270°)dmin = 0.5(1 − ma)
Pulse on-timeton = d(θ) / fsw

The duty swings symmetrically around 0.5. With ma = 1 it spans the full 0–100% range; with smaller ma it stays closer to 50%, producing a smaller output voltage. This averaged duty, filtered by the load inductance, reconstructs the sine wave at the inverter output.

Real-World Applications & Examples

Worked examples

1. Peak of the sine, ma=0.8. θ=90°: d=0.5(1+0.8×1)=0.90 (90%).
2. At θ=30°. sin30°=0.5: d=0.5(1+0.8×0.5)=0.5(1.4)=0.70 (70%).
3. At the trough, ma=1.0. θ=270°, sin=−1: d=0.5(1−1)=0 (0%) — the switch stays off.
4. Zero crossing. θ=0° or 180°: sin=0, d=50% regardless of ma.
5. On-time. Example 1 with fsw=10 kHz (T=100 µs): ton=0.90×100 µs=90 µs.
6. Duty span. With ma=0.8 the duty ranges from dmin=0.5(1−0.8)=10% to dmax=90%, staying within safe switching limits.

Frequently Asked Questions

What is the SPWM duty cycle formula?

The instantaneous duty is d(θ)=0.5×(1+ma·sinθ), where ma is the amplitude modulation ratio and θ is the electrical angle of the sine reference.

Why is the duty 50% at the zero crossing?

At the sine zero-crossing the reference equals the carrier centre, so the pulse is symmetric — on for half the period and off for half. This produces zero average output at that instant.

What are the maximum and minimum duty cycles?

They occur at the sine peak and trough: dmax=0.5(1+ma) at 90° and dmin=0.5(1−ma) at 270°. With ma=1 they reach 100% and 0%.

What does the modulation index do to the duty?

ma sets how far the duty swings away from 50%. A larger ma gives a wider swing and larger output voltage; a smaller ma keeps the duty near 50% with a smaller output.

How do I get the pulse on-time from the duty?

Multiply the duty by the switching period: ton=d(θ)/fsw=d(θ)×Tsw. For example, 90% duty at 10 kHz (100 µs period) gives a 90 µs on-time.

What is the difference between unipolar and bipolar SPWM?

Bipolar SPWM switches the full bridge between +Vdc and −Vdc; unipolar switching adds a third level (0 V), halving the effective harmonic content and doubling the apparent switching frequency at the output. The per-leg duty formula is the same.

Can the duty go above 100% or below 0%?

Not physically. If ma>1 the ideal formula would exceed 0–100%, but the hardware clamps the duty at the rails — this clamping is what causes overmodulation distortion.

How does three-phase SPWM differ?

Each of the three legs uses the same formula but with references 120° apart: da=0.5(1+masinθ), db at θ−120°, dc at θ−240°. The line-to-line voltages then form a balanced three-phase set.

What is the frequency modulation ratio and why keep it high?

mf=fcarrier/foutput is the number of carrier cycles per output cycle. A high mf gives more PWM pulses per sine cycle, pushing harmonics to high frequencies that the load inductance easily filters.

Does dead-time affect the actual duty?

Yes. A small dead-time is inserted between the top and bottom switch turn-on to prevent shoot-through, which slightly reduces the effective on-time and distorts the output near zero-crossings, especially at low ma.

How many points do I need in a PWM table?

One duty value per switching pulse, i.e. mf points per output cycle. A higher carrier frequency needs a larger table but produces a smoother sine and lower audible noise.

Is SPWM the same as space-vector PWM?

No. SPWM compares each phase to a carrier independently. Space-vector PWM (SVPWM) treats the three phases together and adds a common-mode component, using the DC bus about 15% more effectively while producing a similar per-leg duty pattern.

Related Calculators

Inverter Modulation IndexDC-DC Duty CycleTHD CalculatorAll Calculators