WattNWave
DIY projects › Power on the go and in power cuts

Replace your UPS battery with lithium (LiFePO4)

The lead-acid battery in a UPS wears out every two to four years. A LiFePO4 battery of the same size lasts far longer and runs longer, but only if it can deliver the high current a UPS needs. Check that first with the calculator, then the swap itself takes half an hour.

9V
EasyNo soldering30 minutes
New to electronics? The words used on this page
LiFePO4
A safe, long-lasting kind of lithium battery. A 12 V one is 12.8 V and charges at 14.4 to 14.6 V.
Multimeter
A hand-held meter that measures voltage. Use it to check before you connect anything.
Ah, mAh
How much a battery holds. 1 Ah = 1,000 mAh. Multiply Ah by volts to get watt-hours (Wh).

ASwap the battery

Your UPS takes one or two standard 12 V batteries (7 to 18 Ah) and the calculator says the new battery can deliver the current. No soldering · 30 minutes

UPSbattery bay open212 V LiFePO4same size, high-rate3the UPS's own leads14then test with the plug pulled+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

  • 12 V LiFePO4 battery, same size as the old oneIts continuous discharge current must cover the calculator's figure
    View on Amazon
  • MultimeterTo check voltages before you connect anything
    View on Amazon

Tools

Screwdriver, multimeter.

Step by step

  1. 1

    With the UPS plugged in and the old battery charged, measure across the battery terminals: it should read 13.4 to 14.6 V (double for a 24 V UPS).

    Check: above 14.6 V per battery: do not fit lithium.

  2. 2

    Switch the UPS off, unplug it and unplug everything from it. Open the battery door, slide the old battery out and pull off the two leads. Note which lead was on +.

  3. 3

    Push the leads onto the new battery: red to +, black to −. Slide it in and close the door.

    Check: for two batteries, keep the link wire between them exactly as it was.

  4. 4

    Plug the UPS in and let it charge for a few hours. Then, with your normal load on it, pull the plug and time how long it runs.

    Check: it must not switch off at once. If it does, the battery's current limit is too low.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
UPS red leadNew battery +The UPS's own lead
UPS black leadNew battery −The UPS's own lead
Link wire (24 V UPS only)Battery 1 − to battery 2 +The UPS's own link

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

Will a lithium battery work in your UPS?

The current your UPS draws, against the battery's limit, and the runtime.

What is plugged in, not the UPS's rating. A PC and monitor are about 150 to 300 W; a router 10 W.
Printed on the old battery.
From the lithium battery's label or datasheet. Small ones are often only 7 to 15 A.
Our suggestion
—

How this is calculated

Method
Battery current = load ÷ (battery voltage × 85%). The new battery's continuous discharge limit must be at least 1.1 × that. Runtime = Ah × V × usable share × 85% ÷ load.
Assumptions
UPS inverter efficiency 85%. Usable share: 50% for a lead-acid battery at UPS currents (it gives much less than its 20-hour rating when drained in minutes), 90% for LiFePO4. Rule-of-thumb figures: test the real runtime once.
Sources
Lead-acid battery discharge tables (capacity at high rates); LiFePO4 battery datasheets.

Stay safe

Stop at once if a cell or board smells, gets hot to the touch, swells, hisses or smokes. Unplug it, move it onto a non-flammable surface outdoors if you safely can, and keep away until it is cold.
  • A UPS pulls a very high current from a small battery. A lithium battery whose discharge limit is too low will switch off the moment the power fails. Check the calculator first.
  • Use a LiFePO4 battery with a built-in BMS, the same size and terminal type as the old one (usually F2, 6.3 mm).
  • The UPS must not charge above 14.6 V per 12 V battery. Measure it before you swap.
  • LiFePO4 must not be charged below 0 °C (32 °F). A UPS in an unheated garage should stay on lead-acid.
  • Switch the UPS off and unplug it before you open the battery door. Its output sockets carry mains voltage: do not open the electronics.
  • Recycle the old lead-acid battery at a battery shop or recycling centre.

Questions people ask

Will any 12 V lithium battery work in a UPS?

No. The usual problem is current: a 600 W UPS draws about 60 A from a 12 V battery, and many small LiFePO4 batteries allow only 7 to 15 A. Choose one sold for UPS use or with a high continuous discharge rating.

Will the UPS charge it correctly?

A UPS holds a lead-acid battery at about 13.5 to 13.8 V. That charges a LiFePO4 battery to roughly 90 to 95%, which is fine and gentle on it.

Is the runtime longer?

Usually yes at the same Ah, because a lead-acid battery gives only about half its rated capacity at UPS currents, and lithium gives nearly all of it.

Will the UPS's battery gauge still be right?

Not exactly. It is calibrated for lead-acid, so the percentage and time left can be wrong. Test the real runtime once with your load.

Is it worth it?

For a UPS that sees frequent power cuts, yes: lithium lasts many more cycles. For a UPS that almost never runs on battery, a new lead-acid battery is cheaper.

Written and checked by Moataz FOUAD, telecom and electronics engineer. About this site.