Open the 3D lab
Machine 07 · BACKUP POWER

Home
inverter

The power goes out, the fan keeps turning. Four fast switches chop a 12 V battery into pulses and a transformer turns them into mains power: 230 V at 50 Hz as in India, or 120 V at 60 Hz as in the US.

TitleHow a home inverter worksDwg no.FIG. 07
DrawnTestIt3DUpdatedRevC
ScaleNTSReading9 minModelLive 3D
FIG. 07 · live model · drag to turn Home inverter 3D model, paused
12 Vbattery, DC
230 Voutput (120 V in the US)
50cycles a second (60 in the US)
4MOSFET switches
~10 msto take over
In one paragraph

How does a home inverter work?

A home inverter turns the 12 V DC in its battery into mains AC (230 V, or 120 V in the US) when the power goes out. Four MOSFET switches chop the battery current into pulses, a step-up transformer raises them, and a relay changes over in about 10 ms. On mains, the same parts recharge the battery.

Backup maths

How long will a 150 Ah battery last at 300 W?

The same sum the model's Backup estimate readout does, one line at a time.

Battery voltage12 V
Rated capacity150 Ah
Energy stored, 12 × 1501,800 Wh
Usable share, about 80%1,440 Wh
After inverter losses, × 0.851,224 Wh
Load: 3 fans, lights, LED TV300 W
Backup, 1,224 ÷ 3004.08 h, about 4 h 5 min

A teaching estimate, and a best case. Lead-acid batteries deliver fewer amp-hours when drained quickly, lose capacity with age, and long thin cables waste a little more. Swap in your own load to get your own number.

One AC cycle

Push. Ease. Pull. Return.

Twenty milliseconds: up, down, and the same again the other way.

Home inverter in 3D: positive, rising
01

Positive, rising

push

Q1 and Q4 pulse together and push current one way through the transformer. The pulses get wider, so the voltage climbs.

Home inverter in 3D: positive, falling
02

Positive, falling

ease

The same pair keeps pulsing, but each pulse gets shorter. The coil and capacitor smooth the pulses into a curve.

Home inverter in 3D: negative, rising
03

Negative, rising

pull

Now Q2 and Q3 take over and the current flips direction. A tiny pause between them stops the battery being shorted.

Home inverter in 3D: negative, falling
04

Negative, falling

return

The pulses shrink back to zero, ready for the next cycle. Fifty of these every second make 230 V AC.

Battery to socket

What the inverter does in those 10 ms

About 9 minutes of reading.

How does a home inverter work when the power goes?

It's 10:40 at night in May and the power goes. The lights blink, something clicks in the box under the stairs, there's a short beep, and the fan keeps turning as if nothing happened. The whole rescue took about 10 milliseconds, quicker than a blink.

In those 10 ms a changeover relay inside the inverter let go of the dead mains line and connected your house wiring to the inverter's own output. The battery, a 12 V, 150 Ah tubular lead-acid one in our model, started pushing current into four electronic switches called MOSFETs. They chop the battery's steady current into pulses and flip its direction fifty times a second. A transformer steps the voltage up about thirty times, and a capacitor smooths the pulses into the 230 V wave your fan was getting from the mains a moment earlier.

So an inverter doesn't make electricity. It stores some while the mains is on and hands it back later, in a shape your appliances can use, minus about 15% lost as heat on the way.

In the US the same idea goes by other names. There's the power inverter run from a car or deep-cycle battery, the UPS or battery backup that keeps a computer alive, and the home battery on a garage wall for the whole house. Indian towns often get short, frequent cuts, which a battery refilled overnight handles well. US outages are rarer but can last days after a hurricane or ice storm, so many households keep a generator too.

How does an inverter convert DC to AC?

A battery pushes current one way only. That's DC, direct current. Mains power is AC, alternating current, which swings positive and then negative fifty times a second, so one full swing takes 20 ms. (US mains does it sixty times, 16.7 ms a swing.) The inverter copies that swing with four switches laid out in an H shape, called an H-bridge.

For the positive half of the wave, Q1 and Q4 switch on together and current runs one way through the transformer's thick primary winding. For the negative half, Q2 and Q3 take over and the current runs back the other way. The two switches on one side of the H (Q1 with Q3, or Q2 with Q4) must never be on together, because that would join the battery's plus straight to its minus. The controller leaves a tiny pause between them, called dead time, for exactly that reason.

The switches don't stay on for the whole half wave. They pulse, and the controller makes each pulse wider near the peak of the wave and narrower near zero. That's pulse width modulation, or PWM. The transformer coil and the filter capacitor average the pulses out, so the socket sees a smooth curve. We drew only 16 pulses per half wave so you can count them; a real inverter switches somewhere around 6,000 to 20,000 times a second.

Why a 1:30 transformer? A 230 V supply actually peaks at about 325 V. Thirty times 12 V gives 360 V, which leaves room when the battery sags towards 11.5 V late in a long cut. A 1:25 winding would top out at 300 V and fall short. A 120 V unit peaks at only about 170 V, so roughly half the ratio, around 1:15, does the job.

Why does an inverter click and beep when the power goes?

The click is the changeover relay. It's a metal switch arm pulled by a small electromagnet, sitting between two contacts, mains on one side and the inverter on the other. It breaks one connection before it makes the other, so your wiring is never tied to both at once. The swing takes about 10 ms, half of one 50 Hz cycle. An LED bulb may blink in that gap. The fan, heavy and already spinning, won't even slow down.

The beep comes from a small buzzer on the control board. One beep usually just means it has moved to battery. Faster or longer patterns tend to warn of a low battery or too much load, and on an overload most inverters cut their output to protect the MOSFETs. Patterns differ from maker to maker, so the manual is the place to check what yours is telling you.

How does an inverter charge the battery?

When the mains comes back, the relay clicks again and sends mains straight through to your sockets. The inverter then does its job in reverse. The same transformer steps the mains voltage down, and the same four MOSFETs work as a rectifier, a one-way gate that turns AC into DC for the battery. Press Mains back in the model and the current dots run the other way, with the Battery current readout showing 10.0 A going in and the battery at 13.8 V.

Real chargers are smarter than our fixed 10 A. They push harder while the battery is low, then hold the voltage steady and let the current taper off as it fills, so the plates don't overheat. Refilling a well-drained battery takes hours, often most of a night.

Charging is also why tubular batteries need topping up. Near full charge, a little of the water in the acid splits into hydrogen and oxygen and bubbles away, so the level slowly drops, and it's topped up with distilled water. Leave this to the service technician or follow the battery manual to the letter. The acid burns skin and the gas can catch fire.

Pure sine wave vs modified sine wave: which is better for fans?

Run a ceiling fan on a cheap square-wave inverter and you'll often hear the difference before you feel it, a low hum from the motor that isn't there on mains. A square wave jumps straight from plus to minus and sits flat at each end. The fan's motor and capacitor were designed for the smooth curve of mains, so those sharp corners end up as extra heat and noise instead of breeze. (Modified sine units, the budget kind common in US stores, add a short pause at zero. Better, still not a sine.)

A sine wave inverter, the kind in our model, uses PWM to trace the same curve the mains gives you. Fans run quieter and cooler, and motors in mixers and fridges behave as they would on mains. Square-wave units cost less and are fine for plain bulbs. For a home where fans run all night, we'd pay the extra for sine wave.

What does VA rating mean, and how much can a 900 VA inverter run?

VA means volt-amperes, and it isn't quite the same as watts. Motors and many gadgets draw current that's a little out of step with the voltage, so the inverter has to supply more current than the watts alone suggest. Watts divided by VA is called the power factor. For home inverters it's usually somewhere between 0.7 and 0.85, so a 900 VA box handles roughly 630 to 765 W of steady load. The label gives the exact figure. The US question "what size inverter do I need" gets the same answer. Add up the watts of everything running at once, and leave room for the biggest motor's start.

Starting is the hard part. A fridge compressor can pull several times its running power for a moment as it kicks in, which is why the model's hint says 750 W covers a fridge and fans after starting. A small fridge often runs fine on 900 VA if there's headroom for that kick. How long will a 12 V battery run a fridge? Longer than the 750 W row suggests, since the compressor cycles; a fridge averaging 50 W could in theory last most of a day, minus the inverter's own standby draw. An air conditioner is another matter. A typical 1.5 ton (18,000 BTU/h) split AC draws well over 1,000 W while running, more than a 900 VA unit and one 12 V battery can give, and US central air draws more again. Ask the electrician who sizes your system before you add heavy loads.

By load

Backup hours by load, 150 Ah at 12 V

Same 80% usable and 85% efficiency as the model. Move the Household load slider to check any row.

LoadWhat that might beBattery currentBackup, about
50 W1 fan on medium + 2 LED bulbs4.9 A24 h 29 min
100 W1 fan on full + 3 LED bulbs9.8 A12 h 14 min
200 W2 fans, 4 LED bulbs, Wi-Fi router19.6 A6 h 7 min
300 W3 fans, lights, LED TV29.4 A4 h 5 min
500 W5 fans, lights, TV, router49.0 A2 h 27 min
750 WFridge and fans, after starting73.5 A1 h 38 min

Rounded. Fan figures assume ordinary 70-75 W fans. The inverter's own standby draw matters most at light loads, and fast discharge cuts real capacity at heavy ones, so read the top and bottom rows as best cases.

Try it

Cause a power cut in the 3D model

Open the full 3D lab and go through these in order. It takes about two minutes, and it's the only safe way to open an inverter.

  1. Set Slow motion to 1/400. One 20 ms AC cycle now takes 8 seconds, slow enough to follow single pulses.
  2. Watch the four switches. Q1 and Q4 light blue together for the positive half wave, Q2 and Q3 light red for the negative half. Q1 and Q3 are never lit together, and neither are Q2 and Q4.
  3. Look at the Output plot. The PWM pulses are widest near each peak and shrink towards zero, while the smooth sine runs through them.
  4. Drag Household load from 300 W up to 750 W. The Battery current gauge climbs to about 73.5 A, just short of its red zone, and Backup estimate falls from 4 h 5 min to 1 h 38 min.
  5. Press Mains back. The label reads TRANSFER · 10 ms while the relay arm swings, then MAINS ON · CHARGING, with 10.0 A flowing into the battery.
  6. Press Power cut. The bulb goes dark for half a cycle while the relay swings back. That gap is the blink you notice at home.
  7. Turn off Cabinet to remove the see-through case, then drag to look at the laminated iron core and its thick and thin windings from the side.
Inside the box

Thirteen parts from battery to bulb

Every one is labelled in the 3D lab. Turn the model to find them.

Exploded view of the parts of a home inverter
Illustration of the main parts. Find each one moving in the 3D lab.
  1. Tubular battery
  2. Battery cables
  3. MOSFETs Q1 to Q4
  4. Heat sink
  5. PWM controller
  6. Transformer core
  7. Thick primary
  8. Thin secondary
  9. Filter capacitor
  10. Changeover relay
  11. Mains input
  12. Output socket
  13. Bulb and fan load
Owners ask

Inverter questions, answered straight

Short, straight answers. Open one to read it.

How many hours will a 150Ah battery last?

With 80% of the charge used and an inverter about 85% efficient, a 12 V 150 Ah battery gives roughly 1,224 Wh. That's about 12 hours at 100 W, about 4 hours at 300 W and about 1 hour 38 minutes at 750 W. An older battery, or a heavy load that drains it fast, gives less.

How do I calculate inverter battery backup time?

Multiply battery volts by amp-hours to get watt-hours, take about 80% of that as usable, multiply by the inverter efficiency (about 0.85), then divide by your load in watts. For 12 V, 150 Ah and a 300 W load, 12 × 150 × 0.8 × 0.85 ÷ 300 comes to about 4.1 hours. Treat the answer as a best case.

What is the difference between an inverter and a UPS?

Both move your load to a battery when the mains fails. A computer UPS is built to switch over faster, within a few milliseconds, and usually has a small battery meant to last long enough to save your work and shut down. A home inverter switches in about 10 ms and uses a big battery to run fans and lights for hours. Many home inverters have a UPS mode that narrows the voltage window and switches faster for computers. In the US, "UPS" and "battery backup" usually mean the small desk-side kind.

Is an inverter or a generator better for a power outage?

An inverter with a battery is silent, works indoors and takes over in about 10 ms, but it only gives back what it stored, usually hours of fans, lights and a router. A generator makes power for as long as it has fuel, so it suits outages that last days, but it's noisy and needs an electrician-fitted transfer switch to feed house wiring. Always run a generator outdoors, away from doors and windows, because its exhaust carries carbon monoxide.

Why does my ceiling fan hum on inverter power?

Most often because the inverter puts out a square or stepped wave instead of a smooth sine. The sharp jumps make the fan's motor buzz and run warmer than on mains. A sine wave inverter usually cures it; if the hum stays even on mains, get the fan checked by an electrician.

Why is distilled water added to an inverter battery?

Charging slowly splits some of the water in the acid into gas, so the level drops over the months. Distilled water replaces it without adding the salts in tap water that damage the plates. Have a technician do the top-up, or follow the battery manual exactly, because the acid is corrosive.

Why has my inverter backup time dropped?

Lead-acid batteries lose capacity as they age, faster if they're often run flat or their water level is allowed to fall. A load that has crept up, an extra fan or a new TV, also cuts backup more than people expect. If backup has dropped sharply, ask a technician to test the battery.

Is it safe to open an inverter to look inside?

No. The output is full mains voltage, 230 V or 120 V, capacitors can stay charged after it's switched off, and the battery can push hundreds of amps into a short circuit. Use the 3D model to look inside, and leave any real repair to a qualified technician.

Backup myths

Things people get wrong about inverters

"A bigger VA rating gives longer backup." It doesn't. VA sets how much load the inverter can carry at once; backup time comes from the battery's watt-hours.

"150 Ah means 15 A for 10 hours." Lead-acid batteries give less than their rated amp-hours when drained fast, shouldn't be run flat, and the inverter loses about 15% on the way, so work in watt-hours with the backup sum on this page.

"The inverter generates its own power." It only stores mains energy in the battery and gives it back later. If the mains stays off for a day or two, the inverter stops when the battery runs down.

"The click means something is wrong." A single click is the changeover relay doing its job. Repeated clicking, a burning smell or a hot case is different; switch the inverter off with its own switch and call a technician.

On the label

Words from the spec sheet

DC
Direct current, which flows one way only, like the current from a battery.
AC
Alternating current, which keeps reversing; mains in India and Europe does it 50 times a second at 230 V, US mains 60 times at 120 V.
MOSFET
A transistor switch with no moving parts that can turn heavy current on and off thousands of times a second.
H-bridge
Four switches arranged in an H that can send current through the transformer in either direction.
PWM
Pulse width modulation, shaping a wave by changing how long each on-pulse lasts.
RMS voltage
The steady voltage that would heat a bulb by the same amount; 230 V RMS mains peaks at about 325 V, and 120 V at about 170 V.
VA rating
The volts times amps an inverter can supply, its size limit, which is a little higher than the watts it can deliver.
Power factor
Real watts divided by VA, usually below 1 for loads with motors.
Changeover relay
The electromagnet-driven switch that moves the house wiring between mains and inverter.
Short list

Before the next power cut

  • When the mains is on, the same switches and transformer work backwards to charge the battery.
  • Backup time falls fast with load: a 150 Ah battery runs 300 W for about 4 hours, but 750 W for well under 2.
  • Only 16 pulses per half wave are drawn; real inverters switch thousands of times a second.
Your turn

Tell us what to build next

Name a machine you have always wondered about. We build the most requested ones first.

We read every idea. The most asked-for machines get built first. See our privacy policy.