Capacitive Transformerless Power Supply Calculator
Capacitive dropper design: a series capacitor Xc = 1/(2πfC) drops the mains voltage, a shunt zener diode regulates the output voltage. Enter mains voltage, frequency, load current, and zener voltage — the calculator sizes the capacitor, zener current, inrush resistor, and bleeder.
⚠️ SAFETY WARNING — READ FIRST
- This circuit is NOT ISOLATED from the mains power grid. Every part of the circuit — including the DC output — sits at mains potential and can give a lethal electric shock.
- Not for beginners. Only for those who understand safe high-voltage working practices: closed enclosure, fuse, and testing with isolation.
- Always use an X2-class capacitor (rated for AC mains), a bleeder resistor, and a fusible inrush resistor.
- This calculator is a design aid, not a safety certification.
Calculator
Verified examples
Example 1 — 220 V / 50 Hz, 12 V zener, 50 mA load
V_drop ≈ 220 − 12 = 208 V (est.). C = 0.05/(2π·50·208) ≈ 0.765 µF → nearest standard value 0.82 µF. Xc = 3,881.83 Ω, total current 53.58 mA, zener current at full load 3.58 mA. With no load, the zener carries the full 53.58 mA → 0.643 W of power, so use a zener of at least 1.3 W. Inrush resistor 100 Ω: steady dissipation 0.287 W (use 1 W fusible), peak plug-in current 3.11 A. Bleeder 470 kΩ dissipates 0.103 W.
Example 2 — 110 V / 60 Hz, 5 V zener, 30 mA load
V_drop ≈ 105 V (est.). C ≈ 0.758 µF → standard 0.82 µF. Total current 32.46 mA, zener current 2.46 mA, no-load zener power 0.162 W. Bleeder 470 kΩ: 0.0257 W.
Example 3 — 220 V / 50 Hz, 24 V zener, 20 mA load
V_drop ≈ 196 V (est.). C ≈ 0.325 µF → standard 0.33 µF. Total current 20.32 mA, zener current only 0.32 mA — thin margin, capacitor tolerance could starve the zener.
Failure limit — capacitor too small
For Example 1, using 0.68 µF (below the required 0.765 µF) only delivers 44.43 mA — less than the 50 mA load, zener current −5.57 mA. That means the zener never conducts and the output voltage collapses: too small a capacitor = failed design.
How it works & formulas
The series capacitor acts as a lossless reactance (ideally): Xc = 1/(2πfC). Current drawn from the mains ≈ V_drop/Xc with V_drop ≈ V_mains − V_zener (estimate, ignoring phase angle and diode drops). From the target load current I: C = I / (2πf·V_drop). Excess current at light load is dumped through the shunt zener diode — which is why the zener runs hottest precisely with no load.
| Component | Function | Rule of thumb |
|---|---|---|
| Series capacitor | Drops voltage without dissipation | X2 class, rated ≥ 275 VAC; standard values 0.1–10 µF |
| Zener diode | Clamps the output voltage | Power rating ≥ 2× no-load power |
| Inrush resistor (series) | Limits plug-in surge current | 47–100 Ω fusible, 1 W rating |
| Bleeder resistor | Drains the capacitor when unplugged | 470 kΩ–1 MΩ across the capacitor |
| Fuse | Short-circuit protection | Small slow-blow fuse on the mains side |
Frequently asked questions
Is a transformerless capacitive power supply safe?
Not safe for beginners. This circuit is not isolated from the mains: every part of the circuit, including the DC output and its ground, sits at mains potential from the power grid and can give a lethal electric shock. Only build it inside a closed enclosure that cannot be opened without tools, with a fuse on the mains side, an X2-class capacitor, and a bleeder resistor. If in doubt, use an ordinary isolated adapter.
Which type of capacitor must be used?
You must use an X2-class film capacitor rated for direct connection to AC mains (e.g. 275 VAC). Do not use electrolytic or ordinary ceramic capacitors as the series capacitor — they are not designed to withstand continuous mains voltage and can fail dangerously. The value used is this calculator result, rounded up to the nearest standard value.
Why does the zener diode get hot precisely with no load?
The current through the series capacitor is nearly constant regardless of load. When the load draws full current, the zener only dumps the remainder; when the load is removed, the entire current (e.g. 53.58 mA in the 220 V / 12 V / 50 mA example) flows through the zener. No-load zener power = V_zener × I_total, e.g. 12 V × 53.58 mA = 0.643 W. Always rate the zener at least 2× the no-load power.
What is the maximum current for this topology?
Practically below 100 mA. Larger currents need big, expensive, risky X2 capacitors, the inrush resistor dissipates significant power, and regulation worsens. For loads above ~100 mA, use an isolated switching supply or conventional transformer — safer and more efficient.
How is this different from the bridge rectifier calculator?
The bridge rectifier calculator covers the conventional AC-to-DC bridge rectifier: Vpeak = Vrms × √2, DC voltage after diode drops, ripple from the filter capacitor, and PIV — for supplies using a transformer or straight mains without capacitive dropping. This calculator is specific to the capacitive dropper topology: a series capacitor as reactive voltage dropper plus shunt zener, with no transformer and no isolation.
Why is V_drop = V_mains − V_zener only an estimate?
Because the current through the capacitor and the output voltage are not in phase: the voltage across the capacitor leads the current by 90°, so the correct vector sum uses Pythagoras, not scalar subtraction. For V_mains much larger than V_zener (e.g. 220 V vs 12 V), the error is small — the difference between 208 V and the exact result √(220² − 12²) = 219.67 V is only about 5%. The calculator uses the scalar approximation for simplicity, labels it (est.), and the result is conservative for capacitor selection.
What are the inrush and bleeder resistors for?
The inrush resistor (series, 47–100 Ω fusible) limits the surge current when the plug is inserted exactly at the mains waveform peak — without it, the empty capacitor briefly behaves like a short circuit with peak current Vpeak/R, e.g. 311 V / 100 Ω = 3.11 A. The bleeder resistor (470 kΩ–1 MΩ across the capacitor) drains the capacitor charge after the plug is pulled so it cannot shock you when touched, dissipating a small power, e.g. 0.103 W at 220 V with 470 kΩ.
How good is the voltage regulation?
Poor — that is an inherent limitation of this topology. The output voltage is clamped by the zener only while current is available; if the mains drops 10% (grid tolerance) or the load rises, the zener starves and the voltage collapses. Capacitors also have ±10–20% tolerance. A healthy design keeps a zener current margin of at least a few mA at full load, and never rely on this topology for loads whose current varies drastically.
Can it power a microcontroller like the ESP32?
Technically yes for small currents (e.g. 50 mA in the example above), but strongly discouraged for devices that are touched, programmed via USB, or connected to a computer — the ground of this circuit is live relative to mains and will damage laptops and endanger the user. For microcontrollers, use a cheap, safe isolated power module.
How accurate is this calculator?
The core formula Xc = 1/(2πfC) is exact for an ideal sine wave. Main error sources: mains voltage tolerance (±10%), film capacitor tolerance (±10–20%), and the scalar V_drop approximation (~5% at 220 V / 12 V). Always verify by measuring actual current, and pick a standard capacitor one size above the computed result if the zener current margin is too thin.
Free tool by NRTechStudio