• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Power Supply Circuits / How to Calculate Transformerless Power Supply Circuits

How to Calculate Transformerless Power Supply Circuits

Last Updated on March 9, 2025 by Swagatam 97 Comments

In this article I have explained how to calculate resistor and capacitor values in transformerless power supply circuits using simple formulas like ohms law.

Analyzing a Capactive Power Supply

Before I have explained the formula for calculating and optimizing resistor and capacitor values in a transformerless power supply, it would be important to first summarize a standard transformerless power supply design.

Referring to the diagram, the various components involved are assigned with the following specific functions:

C1 is the nonopolar high voltage capacitor which is introduced for dropping the lethal mains current to the desired limits as per the load specification.

This component thus becomes extremely crucial due to the assigned mains current limiting function.

D1 to D4 are configured as a bridge rectifier network for rectifying the stepped down AC from C1, in order to make the output suitable to any intended DC load.

Z1 is positioned for stabilizing the output to the required safe voltage limits.

C2 is installed to filter out any ripple in the DC and to create a perfectly clean DC for the connected load.

R2 may be optional but is recommended for tackling a switch ON surge from mains, although preferably this component must be replaced with a NTC thermistor.

Using Ohm's Law

We all know how Ohm’s law works and how to use it for finding the unknown parameter when the other two are known.

However, with a capacitive type of power supply having peculiar features and with LEDs connected to it, calculating current, voltage drop and LED resistor becomes a bit confusing.

How to Calculate and Deduce Current, Voltage Parameters in Transformerless Power Supplies.

After carefully studying the relevant patterns, I devised a simple and effective way of solving the above issues, especially when the power supply used is a transformerless one or incorporates PPC capacitors or reactance for controlling current.

Evaluating Current in Capacitive Power Supplies

Typically, a transformerless power supply will produce an output with very low current values but with voltages equal to the applied AC mains (until it’s loaded).

For example, a 1 µF, 400 V (breakdown voltage) when connected to a 220 V x 1.4 = 308V (after bridge) mains supply will produce a maximum of 70 mA of current and an initial voltage reading of 308 Volts.

However this voltage will show a very linear drop as the output gets loaded and current is drawn from the “70 mA” reservoir.

transformerless power supply circuit diagram with calculations

We know that if the load consumes the whole 70 mA would mean the voltage dropping to almost zero.

Now since this drop is linear, we can simply divide the initial output voltage with the max current to find the voltage drops that would occur for different magnitudes of load currents.

Therefore dividing 308 volts by 70 mA gives 4.4V. This is the rate at which the voltage will drop for every 1 mA of current added with the load.

That implies if the load consumes 20 mA of current, the drop in voltage will be 20 × 4.4 = 88 volts, so the output now will show a voltage of 308 – 62.8 = 220 volts DC(after bridge).

For example with a 1 watt LED connected directly to this circuit without a resistor would show a voltage equal to forward voltage drop of the LED (3.3V), this is because the LED is sinking almost all the current available from the capacitor.

However the voltage across the LED is not dropping to zero because the forward voltage is maximum specified voltage that can drop across it.

From the above discussion and analysis, it becomes clear that voltage in any power supply unit is immaterial if the current delivering capability of the power supply is "relatively" low.

For example if we consider an LED, it can withstand 30 to 40 mA current at voltages close to its "forward voltage drop", however at higher voltages this current can become dangerous for the LED, so it's all about keeping the maximum current equal to the maximum safe tolerable limit of the load.

Calculating Resistor Values

Resistor for the Load: When an LED is used as the load, it is recommended to choose a capacitor whose reactance value allows only the maximum tolerable current to the LED, in which case a resistor can be totally avoided.

If the capacitor value is large with higher current outputs, then probably as discussed above we can incorporate a resistor to reduce the current to tolerable limits.

Calculating Surge Limit Resistor: The resistor R2 in the above diagram forms is included as the switch-ON surge limiter resistor. It basically protects the vulnerable load from the initial surge current.

During the initial switch ON periods, the capacitor C1 acts like a complete short circuit, although just for a few milliseconds, and may allow the whole 220V across the output.

This may be enough to blow the sensitive electronic circuits or LEDs connected with the supply, which also includes the stabilizing zener diode.

Since the zener diode forms the first electronic device in line which needs to be safeguarded from the initial surge, R2 can be calculated as per the zener diode specifications, and maximum zener current, or zener dissipation.

The maximum tolerable current by the zener for our example will be 1 watt / 12 V = 0.083 amps.

Therefore R2 should be = 12 / 0.083 = 144 Ohms

However, since the surge current is only for a milliseconds, this value could be much lower than this.

Here. we are not considering the 310V input for the zener calculation, since the current is limited to 70 mA by the C1.

Since R2 can unnecessarily restrict precious current for the load during the normal operations, it must be ideally an NTC type of resistor.

An NTC will make sure that the current is restricted only during the initial switch ON period, and then the full 70 mA is allowed to pass unrestricted for the load.

Calculating the Discharge Resistor: Resistor R1 is used for discharging the stored high voltage charge inside C1, whenever the circuit is unplugged from the mains.

R1 value should be as low a possible for fast discharging of C1, yet dissipate minimum heat while being connected with the mains AC.

Since R1 can be a 1/4 watt resistor, its dissipation must be lower than 0.25 / 310 = 0.0008 amps or 0.8 mA.

Therefore R1 = 310 / 0.0008 = 387500 Ohms or 390 k approximately.

Calculating a 20 mA LED Resistor

Example: In the shown diagram, the value of the capacitor produces 70 mA of max. current which is quite high for any LED to withstand. Using the standard LED/resistor formula:

R = (supply voltage VS – LED forward voltage VF) / LED current IL,
= (220 - 3.3)/0.02 = 10.83K,

However the 10.83K value looks pretty huge, and would substantially drop the illumination on the LED....none-the-less the calculations look absolutely legitimate....so are we missing something here??

I think here the voltage "220" might not be correct because ultimately the LED would be requiring just 3.3V....so why not apply this value in the above formula and check the results? In case you have used a zener diode, then the zener value could be applied here instead.

Ok, here we go again.

R = 3.3/0.02 = 165 ohms

Now this looks much better.

In case you used, let's say a 12V zener diode before the LED, the formula could be calculated as given below:

R = (supply voltage VS – LED forward voltage VF) / LED current IL,
= (12 - 3.3)/0.02 = 435 Ohms,

Therefore the value of the resistor for controlling one red LED safely would be around 400 ohm.

Finding Capacitor Current

In the entire transformerless design discussed above, C1 is the one crucial component which must be dimensioned correctly so that the current output from it is optimized optimally as per the load specification.

Selecting a high value capacitor for a relatively smaller load may increase the risk of excessive surge current entering the load and damaging it sooner.

A properly calculated capacitor on the contrary ensures a controlled surge inrush and nominal dissipation maintaining adequate safety for the connected load.

Using Ohm's Law

The magnitude of current that may be optimally permissible through a transformerless power supply for a particular load may be calculated by using Ohm's law:

I = V/R

where I = current, V = Voltage, R = Resistance

However as we can see, in the above formula R is an odd parameter since we are dealing with a capacitor as the current limiting member.

In order to crack this we need to derive a method which will translate the capacitor's current limiting value in terms of Ohms or resistance unit, so that the Ohm's law formula could be solved.

Calculating Capacitor Reactance

To do this we first find out the reactance of the capacitor which may be considered as the resistance equivalent of a resistor.

The formula for reactance is:

Xc = 1/2(pi) fC

where Xc = reactance,

pi = 22/7

f = frequency

C = capacitor value in Farads

The result obtained from the above formula is in Ohms which can be directly substituted in our previously mentioned Ohm's law.

Let's solve an example for understanding the implementation of the above formulas:

Let's see how much current a 1uF capacitor can deliver to a particular load:

We have the following data in our hand:

pi = 22/7 = 3.14

f = 50 Hz (mains AC frequency)

and C= 1uF or 0.000001F

Solving the reactance equation using the above data gives:

Xc = 1 / (2 x 3.14 x 50 x 0.000001)

=  3184 ohms approximately

Substituting this equivalent resistance value in our Ohm's law formula, we get:

R = V/I

or I = V/R

Assuming V = 220V (since the capacitor is intended to work with the mains voltage.)

We get:

I = 220/3184

= 0.069 amps or 69 mA approximately

Similarly other capacitors can be calculated for knowing their maximum current delivering capacity or rating.

The above discussion comprehensively explains how a capacitor current may be calculated in any relevant circuit, particularly in transformerless capacitive power supplies.

WARNING: THE ABOVE DESIGN IS NOT ISOLATED FROM MAINS INPUT, THEREFORE THE WHOLE UNIT COULD BE FLOATING WITH LETHAL INPUT MAINS, BE EXTREMELY CAREFUL WHILE HANDLING IN SWITCHED ON POSITION.

You'll also like:

  • adjustable regulated power supply circuit with current limit and short circuit protection100V Regulated Power Supply Circuit Diagram with Over Current and Short Circuit Protection
  • lm196 pinout details15V 10 Amp Voltage Regulator Circuit Using IC LM196
  • imageModifying XL4015 Buck Converter with an Adjustable Current Limiter
  • 317hv0-60V LM317HV Variable Power Supply Circuit Diagram

Filed Under: Power Supply Circuits Tagged With: Calculate, Circuits, Power, Supply, Transformerless

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Single Transistor LED Flasher Circuit
Next Post: Simple Peltier Refrigerator Circuit »

Reader Interactions

Comments

Patrick says:
January 5, 2024 at 1:54 am

Very good and useful analysis for free ,Keep it up sir.I have made all efforts to repair damaged common china rechargeable touch on charging circuit,all to failure.With this analysis and other elsewhere,i made a breakthrough.But its good to go for a capacitor with 8 or 10volts so that if the led indicator drops some volts,there will be enough to charge the 4 or 5v battery.
But why is it that when you replaced a burnt component in a circuit like the rechargeable touch,still it wont work.
Thanks so much.

Reply
Swagatam says:
January 5, 2024 at 9:15 am

Thank you Patrick,
There may be some other components which are faulty, that is why the device is not working. You may have check each and every component to diagnose the unit fully.

Reply
Rajat Kumar Sardar says:
May 7, 2023 at 5:39 pm

Many many thanks swagatam for this page
Regards
Rajat Kumar Sardar
Dip IETE

Reply
Swagatam says:
May 7, 2023 at 6:10 pm

Thank you Rajat, Glad it helped you.

Reply
kanakappa teggi says:
March 24, 2023 at 4:24 pm

HI
Guys….
Step 1 = Requirement is 5v o/p and load current is 120 to 150mA
Step 2 = I already try for this circuit given data is c1 = 2.2uF R1= 1M ohm R2 = 110 ohm 2W & 5W ( resistor is heated ) why it is heated i dont know give solution for that R2 resistor
Step 3 = after bridge i am using zener diode 16.5v and across C2 = 1uf 65v
Step 4 = after that zener diode o/p was given in to the i/p 7805 voltage regulator
Step 5 = (I=V/R) V=5V & Load is 33ohm
I= V/R 5/33Ohm
I = 150mA current but i didnot get 150mA I got only 110mA output current but that time LDO and zenor diode accros volt is dip around vz= 11.5v ldo =3.9v why ? give me any solution plz….?

Reply
Swagatam says:
March 24, 2023 at 6:27 pm

You cannot stop the heat generation, because you are trying to drop 300V to 16V through a linear regulator. The heat can be reduced only if a zero crossing controlled circuit is used, as explained in the last concept of this article.
Still however you can try the following modifications in your circuit and check how it works.
https://www.homemade-circuits.com/wp-content/uploads/2023/03/improved-transformerless-power-supply.jpg

Reply
SakisV says:
March 18, 2022 at 1:22 am

Thanks for your useful topics. The max power consumption of such a circuit with C1=0.1uF will be Pmax= 0.069A x 220Vrms= 15.18W, is that correct?

Reply
Swagatam says:
March 18, 2022 at 9:11 am

That is correct!

Reply
Marco Diaz says:
December 9, 2022 at 3:01 am

Hello:
?R2 should be=(308-12)V/0.083A=
=3.56K?
Please, your clarification
Regards

Reply
Swagatam says:
December 9, 2022 at 10:19 am

R2 is included only to control the initial switch ON surge….it is not a permanent current limiting resistor. The input capacitor will itself control the current to the desired limit.

Any value between 50 ohm and 100 ohm should work.

Alternatively you cn use a 10 ohm NTC in place of R2

Reply
Ananya says:
December 13, 2021 at 12:17 pm

Yes.. thank you.. i got the result

Reply
Swagatam says:
December 13, 2021 at 1:37 pm

OK, glad to help!

Reply
Ananya says:
December 14, 2021 at 12:07 pm

I am currently making a circuit for 300mA output current.. can you tell the values of C1, R1 and R2.. i calculated but result is not coming

Reply
Swagatam says:
December 14, 2021 at 3:17 pm

for 300 mA current, C1 can be a 6uF/400V PPC capacitor, R1 can be 1 Meg 1/4 watt, R2 can be a 10 ohm NTC thermister.

Reply
Ananya Jignyasha says:
December 9, 2021 at 12:26 pm

Hello, when i am simulating the circuit online.. i am getting nearly proper voltage after zener diode.. but the current is fluctuating.. can you tell me what should i use after zener so that approx 70 mA is achieved?

Reply
Swagatam says:
December 9, 2021 at 7:36 pm

Helo, you can probably try adding a 1N4007 diode in the positive line that joins the zener cathode with the capacitor positive, and see if that helps. Use a 1000uF/25V capacitor, if the zener value is 12V

Reply
Ananya says:
December 13, 2021 at 10:28 am

Thank you.. my current fluctuations got rectified but still i am not able to attain 70mA..

Reply
Swagatam says:
December 13, 2021 at 10:47 am

How did you measure the current, is it by connecting voltmeter across the output of the power supply? Actually 70 mA cannot be achieved using a 105 capacitor, practically you can get only 50mA from it. You can try adding a 0.47uF/400V in parallel to the 105/400V so that the current increases to 75 mA

Reply
Egon says:
May 5, 2021 at 5:26 pm

Although calculations for the surge limiting resistor indicate a1/4Watt resistor is sufficient, that resistor can at worst case have almost peak mains voltage across it, even though for a very short time. Most 1/4watt resistors are simply not built to withstand such peak voltages and the risk is it will arc over internally should the circuit be repeatedly turned on at the instant of peak voltage. The result is a blackened carburised R2 which will either finally fail short or open. Nothing to do with power dissipation, all to do with the effective volts per metre gradient within the resistor. A physically larger resistor mitigates that risk. Where space permits I use two 1 watt resistors in series, but then I am in a country where the mains is 240 volts. In 110V countries that arcing failure mode is much less frequent.

The issue is compounded by the fact that the breakover , or voltage withstand characteristics of resistors are not often quoted. It’s seen to be all about the power handling and the resistance value.

To illustrate the principle: would anyone feel OK about putting 1000V across an 8.2Mohm 1/4W resistor? The power comes out to be only 0.12Watts so based on power calcs it should be fine. But I’m not sure I would be happy with a kilovolt over an air gap of about 4mm, let alone a 4mm component made of ceramic and metal film.

For this application carbon composition resistors fare better than film types, at least in theory. In practice I have had no issues with using two 1/2 resistors of any kind in series, or 1Watt resistors. Both avoid the arcing problems.

Reply
Swagatam says:
May 5, 2021 at 5:29 pm

Thank you for the useful feedback….two resistors in series looks a better option to me.

Reply
Andy Paumann says:
April 21, 2021 at 8:30 pm

Hi!

Concerning the R2 Resistor, which protects the Zener-Diode wouldn’t it be possible to also use a supressor Diode to protect the Zener-Diode and the circuit behind?

Reply
Swagatam says:
April 22, 2021 at 9:33 am

Hi, Yes that can be also included for added protection…

Reply
Bill says:
February 22, 2021 at 8:06 am

I ever experience build the Transformerless Power Supply. When the circuit is in no load condition, the Zener diode generates very high heat and causes the PCB to turn brown.

I find some circuit designs apply a resistor in front of the Zenor diode. What is the purpose? Please advise.

Reply
Swagatam says:
February 22, 2021 at 1:15 pm

Yes a series resistor is required otherwise the zener will quickly burn. R2 is specifically introduced for this purpose!

Reply
Tusar bera says:
December 21, 2020 at 1:42 am

Place write hindi ,so it is easy undertand for transformer less power supply,

Reply
Visse Morgan says:
December 18, 2020 at 3:24 pm

Hello dear swagatam
Thank you so much for your very interesting and informative essay. I learned a lot. would you please tell me how to calculate the wattage of R1 and R2? I need to use nearly all 70 mA output current to run a fan that needs 60 mA.
Never forget your kindness
Best regards

Reply
Swagatam says:
December 18, 2020 at 6:42 pm

Thank you Dear Visse, I have added the required information in the above article, you can check it out.

Reply
Anand says:
September 15, 2020 at 9:52 pm

What If R2 is not provided?

Reply
Swagatam says:
September 16, 2020 at 11:42 am

zener diode will burn

Reply
Anand says:
September 16, 2020 at 11:53 am

Thank you for kind reply….

Reply
Amin says:
July 7, 2020 at 8:53 pm

Hi dear Swagatamx
could you please tell about details of 110-240V AC / 12V DC2Amp power supply, transformer? I need datasheet, component, turns, wire cross action and etc.
please help me sir.
thanks a lot

Reply
Swagatam says:
July 7, 2020 at 9:13 pm

Hi, I have already answered your question in the previous comment!

Reply
Shibin Varghese says:
August 21, 2020 at 11:23 am

Hi,
While analsing the current through the network,why don’t you take the effect of R1 and R2 into account.
Even though the resistor R1 is used for discharging the capacitor C1, it is in parallel with the capacitive reactance Xc??.
Please explain.

Reply
Swagatam says:
August 21, 2020 at 8:51 pm

Hi, R1 resistance is 1M which is too high, and the current through it will be negligibly small compared to the current through C1, so it can be ignored.

Reply
Tomo says:
March 8, 2023 at 4:48 pm

Hi , very good article; please how to calculate NTC resistor for power and voltage?
Thanks, Tomo

Reply
Swagatam says:
March 8, 2023 at 5:15 pm

Thank you Tomo,
I have posted one article ob NTC which you can read in the following link:

https://www.homemade-circuits.com/using-ntc-resistor-as-surge-suppressor/

Reply
nikunj modi says:
April 16, 2020 at 10:35 pm

Hi I m following u for a long time. I show many a circuits for making a transformerless power supply given by you.i tried a few of ten but theres always a problem of heating or over voltage or undervoltage..I tried every thing ever a 2watt 50 ohms resistor starts heating up. Plz suggest me a circuit using 105/400 capacitor and plz show me how to connect maximum no of leds ( white straw head led 5mm)

Reply
Swagatam says:
April 17, 2020 at 5:31 pm

Hi, please replace the 50 ohm resistor with a 10 resistor, it will not heat, or you an also replace it with an NTC thermistor for better surge control.

You can connect 90 numbers of 3.3 V LEDs rated at 20 mA in series. Remember to put a 300 V 1 watt zener diode across the +/- of the LED string or after the bridge rectifier

Reply
Swagatam says:
April 17, 2020 at 5:33 pm

…please do not use a 105/400V for 20mA LEDs, instead use 474/400v or 0.47uF/400V

Reply
Raghavendra V says:
November 14, 2023 at 4:55 pm

Hi dear swagatam
Thank you so much for your very informative blog. I learned a lot. would you please tell me how to drive 1Watt bead led 3 volt 330mamps 24 hr
thanks
regards

Reply
Swagatam says:
November 14, 2023 at 7:00 pm

No problem Raghvendra, glad you found the post useful…
I would recommend the very last circuit since it is designed to dissipate minimum heat and will be most efficient.
For the transistor you can use MJE350, and for the zener diode 5.1v 1 watt zener diode

Reply
Harsha Vardhan says:
July 19, 2020 at 7:53 pm

Sir
Why we are using R1 in the ckt
Please explain

Reply
Swagatam says:
July 19, 2020 at 8:17 pm

Harsha, it is to discharge the high voltage capacitor safely when the circuit is unplugged from AC. This safeguards the user from getting a painful shock on accidental touching of the input plug pins

Reply
Moses says:
November 9, 2021 at 1:23 am

So does it mean that for a 1 WATT LED WITH 350mA Current will use C1 as 7uF/400V

Reply
Harsha Vardhan says:
July 19, 2020 at 9:55 pm

Sir
Peak inverse voltage is 1000v
Then how it withstand forwardly

Reply
Swagatam says:
July 19, 2020 at 10:25 pm

Harsha, Please check this for your information:

1N4007 Characteristics:
Maximum Recurrent Peak Reverse Voltage 1000V
Maximum RMS Voltage 700V
Maximum DC Blocking Voltage 1000V
Average Forward Current: 1.0A
Peak Forward Surge Current: 30A
Maximum Instantaneous Forward Voltage: 1.0V
Maximum DC Reverse Current At Rated DC Blocking Voltage: 5.0µA @ 25°C
Typical Junction Capacitance: 15pF
Typical Reverse Recovery Time: 2.0us
Mounting Type: Through Hole
Operating Temperature: -55°C ~ 150°C

Reply
Harsha Vardhan says:
July 19, 2020 at 9:05 pm

Sir
thank u
Film capacitor only limits current
But not voltage
How diode will withstand higher voltage

Reply
Swagatam says:
July 19, 2020 at 9:16 pm

Harsha, the diodes are rated at 1000 V

Reply
Owen William Hanson says:
January 1, 2022 at 8:07 pm

OHHH!!! I was wondering the same thing! But you’ve dropped the last two digits, and so it wasn’t obvious what you were explaining (1.414), and you also didn’t state “1.414 RMS” which to some, (like me, is needed). But thanks for this explanition!

Reply
Mark Tydeman says:
February 16, 2020 at 11:05 pm

Hi Swagatam, thank you for your time, very much appreciated.
Mark

Reply
View Older Comments

Leave a Reply to Sunshine Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (92)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (84)
  • Datasheets and Components (109)
  • Electronics Theory (148)
  • Free Energy (39)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (16)
  • Inverter Circuits (94)
  • Lamps and Lights (157)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (66)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (90)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (105)
  • SMPS and Converters (32)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (38)
  • Water Controller (36)
  • Wireless Circuits (30)





Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap



People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin



Recent Comments

  • Swagatam on 3 Laser Beam Controlled Circuits Explored
  • ken on 8X Overunity from Joule Thief – Proven Design
  • Kim on 3 Laser Beam Controlled Circuits Explored
  • Swagatam on Making an Adjustable Electromagnet Circuit
  • Swagatam on Make this DC CDI Circuit for Motorcycles

© 2025 · Swagatam Innovations