How does a UPS (home inverter) work?
Mains on: power goes straight to the house while the charger tops up the battery. Press "Power cut".
Overview
Short answer
A home UPS charges a battery while the power is on. When the mains fails, a switch flips in about 10–20 milliseconds and an inverter turns the battery’s 12 V DC into 230 V AC, so lights and fans keep running for hours.
A home UPS (often just called an "inverter") is a box that stores electricity in a battery while the power is on, and the moment the power cuts out, switches your home over to that battery. Press "Power cut" in the figure to see it happen.
Play with the figure, then press Next (or the → key) to go step by step.
Three jobs in one box
- Charger. While mains power is on, it turns the grid's alternating current into direct current and keeps the battery topped up.
- Changeover switch. It watches the mains voltage. When it disappears or drops too low, a relay flips your sockets over to the inverter.
- Inverter. It turns the battery's 12 or 24 volts of direct current into 230 volts of alternating current, the same as the grid.
How DC becomes AC
A battery pushes current one way only. Your fans and fridge expect current that reverses direction 50 times a second. The inverter uses fast electronic switches (transistors) in a bridge to flip the battery's connection back and forth, then a transformer steps the voltage up from 12 V to 230 V.
How cleverly it flips the current decides the shape of the output wave:
Why the switchover is so fast
A typical home UPS switches in about 10 to 20 milliseconds, faster than a light bulb can visibly dim and fast enough for most appliances. A desktop computer can sometimes still restart. Offices and data centres use an online UPS, which runs everything through the inverter all the time, so there is no switchover at all.
How long will the battery last?
A quick estimate:
backup hours ≈ battery Ah × battery volts × usable share × inverter efficiency ÷ load in watts
For a 150 Ah, 12 V battery running a 300 W load: 150 × 12 × 0.7 × 0.85 ÷ 300 ≈ 3.6 hours. Lead-acid batteries should not be drained much past 70–80%, or they wear out quickly. Halving the load roughly doubles the backup, so switch off what you don't need during long cuts.
Battery types
- Tubular lead-acid: the common choice. Robust and affordable, but needs distilled water topped up every few months.
- Sealed (maintenance-free) lead-acid: no water to add, but usually a shorter life.
- Lithium (LiFePO₄): lighter, lasts many more cycles, charges faster and can be drained deeper. It costs more up front, and uses the same chemistry family as your phone battery.
Common myths
- "A bigger inverter gives more backup." The inverter's VA rating sets how much load it can run at once. Backup time comes from the battery.
- "Draining the battery fully is good for it." Deep discharges shorten lead-acid life. Recharge as soon as the power returns.
- "UPS and inverter are different things." At home they are usually the same box. The difference is mostly switchover speed: computer UPS units switch faster but hold far less backup.
Questions people ask
What size UPS do I need?
Add up the watts of everything you want to run at once, then choose an inverter rated about 25–30% above that in VA. Then pick a battery size for the backup hours you need.
Can I connect solar panels to my UPS?
Only with a solar inverter or a UPS that has a built-in solar charge controller. Connecting panels directly to a normal UPS battery can overcharge and damage it.
Why does my UPS beep?
Usually it is warning you that the mains has failed, the battery is low, or the load is too high. Check the manual for the meaning of each pattern.
How often should I top up the battery water?
For tubular lead-acid batteries, check every two to three months, and more often in hot weather. Use only distilled water, filled to the marked level.
Can a UPS run an air conditioner?
Normal home UPS units cannot: an AC draws far too much power, especially when it starts. Running one needs a large, specially sized inverter and battery bank or solar system.
Test yourself
Pick an answer for each question. Every answer comes with an explanation.
0/4 answered01What does the inverter part of a UPS do?
02A 150 Ah, 12 V battery runs a 300 W load. Roughly how long will it last?
03Why is a pure sine wave inverter better for fans and motors?
04What decides how long the backup lasts?
Sources & more
Sources
- Uninterruptible power supply (Wikipedia)(opens in a new tab)
- Power inverter (Wikipedia)(opens in a new tab)
- Lead–acid battery (Wikipedia)(opens in a new tab)
- Total harmonic distortion (Wikipedia)(opens in a new tab)
Last updated 2026-11-26
Keep exploring
- Energy & PowerExplore it
How do solar panels work?
- Energy & PowerExplore it
How does an LED work?
- Energy & PowerExplore it
How does an electric car work?
- Energy & PowerExplore it
How does the power grid work?
- Energy & PowerExplore it
How does an electricity meter work?
- Energy & PowerExplore it
How does a transformer work?