How to Build a Homemade 12V to 220V Inverter (Safely)

By Best Power Inverter Editorial Team • October 19, 2026

You cannot plug 12V straight into a 220V appliance. You need an inverter that turns battery DC into AC and steps it up with a transformer. An inversor 12v a 220v casero (a homemade 12V to 220V inverter) can run a few tens of watts of simple loads. For anything bigger or more sensitive, a store-bought inverter is safer and more efficient.

Quick answer

A DIY inverter built with a CD4047 chip, two MOSFETs and a 12-0-12V transformer makes square wave AC. It suits bulbs and small resistive loads up to roughly 50-150W. Buy a ready-made unit for chargers, laptops, fridges or tools.

  • Best for learning: DIY CD4047 build, low power
  • Best for power cuts: bought modified sine unit
  • Best for electronics: bought pure sine unit
Key Takeaways
  • 12V DC cannot power a 220V appliance directly. It must be switched into AC and stepped up.
  • A simple DIY inverter outputs square wave, which can harm motors, chargers and sensitive electronics.
  • Battery current is watts divided by 12, divided by efficiency. A 300W load pulls about 29A.
  • Use a fuse on the battery cable, thick wire and a heat sink.
  • Output above about 50V AC is a shock hazard. Treat it with respect.
  • Beyond low-power experiments, buying is safer and often not much more expensive.
Note on Scope: This guide explains the principle, a basic low-power circuit and the numbers behind battery sizing. It does not give a full step-by-step build for high-power or pure sine inverters, and it is not a substitute for a qualified electrician.

Can I plug 12V into 220V?

No. A 12V battery gives steady DC at low voltage. A 220V appliance expects AC that swings back and forth, 50 times a second in most of Europe and Latin America. Connecting the two does not work. At best nothing happens. At worst you damage the appliance or the battery.

Mains voltage depends on where you live. Most of Europe and Latin America uses 220-240V at 50Hz. North America uses 120V at 60Hz. Your inverter must match your region, so check the label on your appliance first.

How does a 12V to 220V inverter work, step by step?

An inverter makes AC by switching DC on and off very fast, then raising the voltage. Here is the chain:

  1. Oscillator: a chip such as the CD4047 or SG3525 creates a clock signal, about 50Hz for simple designs.
  2. Driver: the signal is made strong enough to turn power switches on and off.
  3. Switching stage: power MOSFETs connect the battery to the transformer, first one side, then the other.
  4. Transformer: it steps the low voltage up to around 220V AC.

Bigger inverters often use a high-frequency boost converter instead of a heavy 50Hz transformer. The idea stays the same: switch, then step up.

hobbyist soldering a small inverter circuit board on a workbench

What components do you need to build a simple homemade inverter?

A basic build uses cheap, common parts:

  • CD4047 CMOS astable multivibrator chip
  • Two N-channel power MOSFETs (such as IRF3205 types)
  • A transformer rated 220V to 12-0-12V, run in reverse
  • A resistor and capacitor for timing, plus a trimmer to tune frequency
  • Gate resistors and pull-down resistors
  • A heat sink for the MOSFETs
  • An inline fuse and thick battery cable
  • An insulated enclosure with a switch

How do I make a basic inverter with a CD4047 or SG3525 and a transformer?

Wire the CD4047 so it free-runs, then let its two opposite outputs drive two MOSFETs. Each MOSFET switches one half of the transformer’s 12V winding to battery negative. The center tap goes to battery positive through a fuse.

Here is the flow:

  1. Set the CD4047 timing parts so the outputs run at 50Hz. A 100 kΩ trimmer with about 22 nF is a common starting point. Tune it with a frequency meter.
  2. Connect each output to a MOSFET gate through a small resistor. Add a pull-down resistor from each gate to ground.
  3. Connect each MOSFET drain to one end of the 12-0-12V winding. Connect the sources to battery negative.
  4. Connect the center tap to battery positive through the fuse.
  5. The original 220V winding now becomes your output.

The SG3525 works the same way. It has stronger drive outputs and built-in features like soft start and shutdown, so it suits higher power.

Expert Insight: The transformer’s VA rating limits your output. A 12-0-12V, 100VA transformer will not safely deliver 300W. Running it near its limit also makes it hot. Plan to load it well below its rating.

How many watts can a homemade inverter realistically power?

Realistically, 50 to 150W, and only for simple loads. Small parts, a modest transformer and basic drive circuits set the limit. Pushing past that causes hot MOSFETs, a hot transformer and early failure.

Good loads at this level are incandescent bulbs and small resistive heaters. Poor loads are anything with a motor, a power supply or electronics.

What is the difference between square wave, modified sine wave and pure sine wave?

The difference is the shape of the voltage. A pure sine wave is smooth, like grid power. A square wave jumps straight between high and low. A modified sine wave adds a pause step, so it is closer to a sine but still rough.

Square and modified sine outputs can cause heat, noise or damage in inductive loads and sensitive electronics. Pure sine units copy grid-like output. Your CD4047 build makes square wave.

DeviceSquare wave
Incandescent bulbWorks
Resistive heater (small)Works
Laptop or phone chargerAvoid: can overheat or fail
Fridge or freezerAvoid: motor runs hot and noisy
Power tools and fansAvoid: motors and inductive loads
Medical devicesNever use

Expert Insight: Many LED bulbs and cheap chargers have small switching power supplies. They may buzz, run hot or die early on square wave. Test with a bulb you can afford to lose.

How do I choose the battery size and cable thickness for a given load?

Start with the current. Amps drawn from the battery equal watts divided by 12V, divided by efficiency. A 300W load at about 85% efficiency draws about 29A. That is a lot for a 12V system, so cables and fuses matter.

The table below uses 85% efficiency. Fuse and cable values are rule-of-thumb figures for short runs under about 1.5 m. Check your local wiring rules and your inverter’s manual before you copy them. For more on fuse placement in real installs, see this van inverter wiring guide.

LoadBattery currentSuggested fuseCable (copper)Runtime on 100Ah (50% usable)
50Wabout 5A10A1.5 mm²about 10 hours
100Wabout 10A15-20A2.5 mm²about 5 hours
300Wabout 29A40A6 mm²about 1.7 hours
600Wabout 59A80A16 mm²about 50 minutes

Always fuse the positive cable close to the battery. A short in thick cable can melt insulation fast.

12V deep cycle battery with thick red and black cables in a camper van

How long will a 12V battery run a 220V load?

Multiply volts by amp-hours to get watt-hours, then keep only the usable part. A 12V 100Ah battery stores about 1200Wh. Lead-acid should only be drained about 50%, so you get about 600Wh usable.

Worked example for a 300W load:

  • Usable energy: 600Wh
  • After about 85% inverter efficiency: about 510Wh reaches the load
  • Runtime: 510 ÷ 300 = about 1.7 hours

Without losses the same math gives 2 hours. Real life is always a bit shorter. For deeper sizing help, a inverter sizing calculator can check your numbers.

What are the safety risks of building a mains-voltage circuit?

There are three: electric shock, fire and a battery short circuit. Mains voltage above about 50V AC is generally treated as hazardous, and currents of tens of milliamps through the body can be dangerous. Your inverter output is well above that line.

  • Shock: the output side can hurt you even from a small battery. Never touch it while running.
  • Fire: thin wire, hot MOSFETs and a loaded transformer can ignite nearby material.
  • Short circuit: a car battery can deliver hundreds of amps. Without a fuse, cables can glow.

A simple DIY circuit also lacks protections that bought units have: low-voltage cutoff, overload shutdown and short-circuit shutdown. It may also give an output voltage that climbs well above 220V with no load.

Checklist before you power on

  1. Fit a fuse in the positive battery cable, close to the battery.
  2. Mount the MOSFETs on a heat sink, insulated if they share a tab.
  3. Check every solder joint and polarity twice.
  4. Put everything in a closed, insulated enclosure with no exposed output terminals.
  5. First test with a current-limited supply, or a 12V lamp in series with the battery. If the lamp glows bright with no load, stop and look for a fault.
  6. Test the output voltage with a meter rated for mains, with the load off.
  7. Start with a single bulb before anything else.
If this, do that:

  • If you only want to learn how inverters work, build the CD4047 circuit and run a bulb.
  • If you need to run a phone charger, laptop or fridge, buy a pure sine inverter.
  • If you need more than about 150W, buy a unit. Do not scale up the DIY board.
  • If you are unsure about mains wiring, skip the build.

When is it better to buy an inverter instead of building one?

Buy whenever you need real power, steady voltage or safe use with electronics. A bought unit has tested protections and a proper case. Small bought inverters are often cheap enough that a DIY build only saves money if you already own the parts.

Comparison table of a DIY CD4047 square wave inverter, a bought modified sine inverter and a bought pure sine inverter on cost, efficiency, safe loads and protections.
FeatureDIY CD4047 square waveBought modified sineBought pure sine
CostLowest, if you have partsLow to mediumHighest
EfficiencyLower, varies with buildGoodGood to very good
Safe loadsBulbs, simple heatersMany resistive loads and some electronicsNearly all loads
ProtectionsOnly what you addUsually built inUsually built in

Prices change often, so check current listings. To pick the right size, this off-grid inverter sizing article explains how to add up loads and battery needs.

Other options

  • Cigarette lighter inverter: small, plug-in, good for a laptop or phone charger in the car. Check its watt rating.
  • 12V or USB native devices: skip the inverter entirely. Many lights, fans and chargers run straight from 12V and waste less energy.

Frequently Asked Questions

Inversor 12v 220v casero: is it worth building one?

It is worth it as a learning project. You will understand oscillators, MOSFET switching and transformers. It is not worth it as a power source for real appliances. Output is usually square wave, power is limited to tens of watts, and protections are missing.

How to convert 12v into 220v?

Use an inverter. It turns the 12V DC into switched pulses with an oscillator and MOSFETs, then a transformer or boost converter raises the voltage to about 220V AC. Pick a pure sine unit for electronics, or a simple one for bulbs.

Can I plug 12v into 220v?

No. Connecting a 12V source straight to a 220V appliance does nothing useful and can damage equipment. The voltage is wrong, and DC is not AC. You need an inverter between them.

How to convert 12v to 220v?

The steps are: make a 50Hz drive signal, switch the battery through the 12-0-12V half of a transformer with two MOSFETs, and take the 220V from the other winding. Add a fuse, a heat sink and an enclosure. Keep loads small and simple.

Inversor 12v a 220v casero: how many watts can it run?

Plan on 50 to 150W for a basic CD4047 build, and stay under the transformer’s VA rating. A 300W load would pull about 29A from the battery, which this kind of board is not made for. For that, buy a proper inverter.

Best Power Inverter Editorial Team

Best Power Inverter Editorial Team

The Best Power Inverter editorial team writes plain-English buying guides and explainers on power inverters for cars, vans, RVs, home backup and solar setups. We compare manufacturer specifications, published manuals and safety standards, and patterns in verified owner reviews, then explain the trade-offs so you can choose the right wattage, waveform and battery setup for...