This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How does a UPS work?
Quick answer
A UPS, or uninterruptible power supply, keeps a battery charged while mains power is on. When power fails, its inverter converts the battery's direct current into alternating current within milliseconds, so computers keep running without restarting. It typically buys a few minutes to save work and shut down, or until a generator starts.
A UPS works by keeping a battery charged from the mains and, the moment mains power fails or goes out of range, using an inverter to turn that battery's DC into AC for the connected equipment. This bridges outages for minutes, long enough to save work or start a generator.
Step by step
- Mains AC enters the UPS, which passes power to the load and feeds a charger that keeps the battery full.
- A monitoring circuit constantly checks incoming voltage and frequency against safe upper and lower limits.
- When mains fails or drifts out of range, the controller starts the inverter drawing energy from the battery.
- The inverter switches transistors rapidly to build an AC waveform from the battery's direct current.
- A relay transfers the load to this output within milliseconds, then returns it to mains once supply recovers.
Key things to understand
- UPS stands for uninterruptible power supply, a box combining a charger, a battery, an inverter and control electronics.
- While mains power is normal, a charger keeps the battery topped up, often using sealed lead-acid or lithium cells.
- Sensing circuits continuously watch the incoming voltage and frequency for cuts, deep dips or dangerous overvoltage.
- In a standby UPS, a relay switches the load to the inverter within a few milliseconds when mains power fails.
- An online UPS runs the load through its inverter all the time, so there is no transfer gap at all.
Labelled diagram
- Mains input
Normal AC supply feeds both the connected load and the battery charger.
- Charger
Converts AC to DC and keeps the battery at full charge.
- Battery
Stores energy as DC, usually in sealed lead-acid or lithium cells.
- Inverter
Turns battery DC into AC when mains power fails or goes out of range.
- Transfer relay
Switches the load from mains to inverter within a few milliseconds.
Real-world examples
- Indian offices plug desktop computers into small UPS units to ride through brief power cuts.
- Data centres use large online UPS systems to bridge the seconds before diesel generators take over.
- Hospitals run imaging equipment and operating theatre systems through UPS units to avoid sudden shutdowns.
- Home internet routers on a mini UPS keep Wi-Fi working through short outages.
Common mistake
✗ Myth: A UPS is meant to keep computers running through hours-long power cuts.
✓ Fact: Most UPS units hold only minutes of battery energy. Their job is to prevent sudden shutdowns, giving time to save work, shut down safely or start a generator.
People also ask
How does a ups work during power failure?
What is the difference between online and offline ups?
How long does a ups battery last?
How long can a UPS run a computer?
What is the difference between a UPS and a home inverter?
Why does my UPS beep?
What is a pure sine wave UPS?
Part of the guide: Energy & Electricity at Home →

