Battery Charging Basics Guide: How a Li-ion Cell Charges — CC-CV Explained

Author: Abloom Spark Date: November 29, 2026

Connect a 5 V USB supply straight to a lithium-ion cell and two bad things happen at once: the cell is fed more than its 4.2 V limit, and nothing limits the current, so the cell takes as much as the supply can give. A proper charger does neither. It feeds the cell a fixed current until the voltage reaches exactly 4.2 V, then holds the voltage at 4.2 V while the current tapers away to almost nothing. That two-step profile — constant current, then constant voltage, CC-CV — is how every phone, laptop and power bank charges its battery, and this guide works the numbers for a single 18650 cell on the popular TP4056 charger chip.

A TP4056 lithium charger circuit with a 5 volt USB input, a 1.2 kilo-ohm programming resistor setting 1 amp of charge current, and an 18650 cell of 2600 milliamp-hours, beside a chart of cell voltage rising from 3.0 to 4.2 volts and charge current holding at 1 amp then decaying to 130 milliamps over 219 minutes

Figure 1: A TP4056 charger (a) — Rprog = 1.2 kΩ sets a 1.0 A charge current for the 18650 cell. The chart (b) shows the CC-CV profile: voltage climbs from 3.0 V to 4.20 V in 109 minutes at a steady 1 A, then the voltage holds at 4.20 V while the current decays exponentially to the 130 mA (C/20) cutoff at 219 minutes. (Schematic, not to scale.)

How this guide's charger works — current first, voltage second

The TP4056 is a linear charger: it sits between the 5 V USB input and the cell and drops the difference across itself, like a variable resistor that a control loop adjusts. In the first phase it acts as a constant-current source, pushing exactly the programmed current into the cell while the cell voltage climbs from wherever it started — 3.0 V for a nearly empty cell — up toward 4.2 V. The current is set by one resistor from the PROG pin to ground: I = 1200 / Rprog, with Rprog in kΩ and the current in mA, so 1.2 kΩ gives 1 A, 2.4 kΩ gives 500 mA, and the chip's maximum is 1 A. That is the whole programming interface — no firmware, no inductor, no switching noise.

When the cell voltage reaches 4.20 V, the chip switches to the second phase: it holds the voltage at 4.20 V and lets the current fall on its own. The cell's own chemistry decides the taper — as the cell fills up, it accepts less and less current at the same voltage, and the current decays roughly exponentially. Charging ends when the current falls to one-twentieth of the cell's capacity, C/20, which is 130 mA for a 2600 mAh cell; the chip then stops and waits, and only starts again if the cell voltage sags below 4.05 V. A cell below 2.9 V gets gentler treatment still: the chip trickle-charges it at about one-tenth of the programmed current — 100 mA here — until it recovers past 2.9 V, because forcing a full amp into a deeply discharged cell can plate lithium metal onto the anode.

Worked example — a 2600 mAh 18650 at 1 A

The cell holds 2.6 Ah at a nominal 3.7 V, so its energy is 2.6 × 3.7 = 9.62 Wh. The charge rate is 1 A / 2.6 Ah = 0.38C — a gentle rate, which is part of why the TP4056's 1 A ceiling suits 18650 cells so well. In practice about 70% of the charge goes in during the constant-current phase: 0.70 × 2.6 = 1.82 Ah at 1 A, which takes 1.82 / 1.0 = 1.82 hours, or 109 minutes, while the voltage climbs from 3.0 V to 4.20 V.

The remaining 0.78 Ah goes in during the constant-voltage phase, with the current decaying as I(t) = 1.0 × e−t/Ï„. The time constant follows from the charge delivered: 0.78 Ah = 1.0 A × Ï„ × (1 − 0.13), because the phase ends when the current has fallen to 0.13 A, so Ï„ = 0.78 / 0.87 = 0.90 hours, or 53.8 minutes. The phase lasts until the current reaches 130 mA, which takes Ï„ × ln(1 / 0.13) = 53.8 × 2.04 = 110 minutes. Total charge time is 109 + 110 = 219 minutes, or 3.65 hours — and the usual rule of thumb agrees: capacity divided by current, times 1.4, gives 2.6 / 1.0 × 1.4 = 3.64 hours. The 1.4 factor is the price of the tapering CV phase: the last 30% of the charge takes as long as the first 70%.

The energy bill shows the cost of a linear charger. All 2.6 Ah flows from the 5 V rail, so the USB supply delivers 5 × 2.6 = 13.0 Wh, but only 9.62 Wh ends up in the cell — the other 3.38 Wh becomes heat in the chip, an efficiency of 74%. The chip's dissipation is worst at the start, when the cell is lowest: (5 − 3.0) × 1 A = 2.0 W in a small SOP-8 package with no heatsink, falling to (5 − 3.6) × 1 A = 1.4 W mid-charge. That is why TP4056 modules get hot to the touch at 1 A and why the chip has thermal regulation that quietly throttles the current if it overheats — a 1 A charge on a warm day may actually run slower than the calculation says.

Three ways to damage a cell — and what the charger prevents

Overvoltage is the first. A lithium-ion cell must never exceed 4.20 V — even 4.3 V accelerates capacity loss and gas build-up, and sustained overcharge is a fire risk. The TP4056 holds its float voltage to 4.20 V ±1%, so 4.16–4.24 V. That ±1% matters: a charger that floated at 4.30 V would look fine on a multimeter and still ruin the cell. The second is overcurrent into a flat cell, handled by the 2.9 V trickle threshold above. The third is over-discharge, which no charger prevents — that is the protection board's job (the small circuit on a protected cell, or the battery-management system in a pack), which cuts the load off around 2.75 V. A bare 18650 has no protection of its own: drain it below about 2.5 V and it may never charge safely again.

Notice what the charger does not do: it never measures the cell's state of charge directly. There is no fuel gauge here — the chip only watches voltage and current, and the CC-CV profile plus the C/20 cutoff is what guarantees a full, safe charge. That is also why a phone can show 100% while the current is still tapering: the voltage has reached 4.2 V, but the last few percent of charge are still trickling in.

Design it for something else — a 1000 mAh pouch at 0.5 A, and a 2-cell pack

For a small 1000 mAh pouch cell, 1 A would be a harsh 1C, so program 0.5 A instead: Rprog = 1200 / 500 = 2.4 kΩ. The constant-current phase delivers 0.70 × 1.0 = 0.70 Ah at 0.5 A, taking 84 minutes; the CV phase has Ï„ = 0.30 / (0.5 × 0.87) = 41.4 minutes and runs 2.04 × 41.4 = 84 minutes to the 50 mA cutoff. Total 168 minutes, or 2.8 hours — again matching the rule of thumb, 1.0 / 0.5 × 1.4 = 2.8 hours, and the chip stays cooler: (5 − 3.6) × 0.5 = 0.7 W mid-charge.

For a two-cell series pack — 7.4 V nominal, 8.4 V when full, 5.2 Ah giving 7.4 × 5.2 = 38.5 Wh — the TP4056 does not apply at all: it is a single-cell charger, and charging two series cells from one 5 V input would leave one cell overcharged and the other undercharged. Series packs need a two-cell charger or a battery-management system that balances the cells. The CC-CV idea is identical, only the voltages double.

Key points to remember

  • Worked example: a 2600 mAh 18650 at 1 A (TP4056, Rprog = 1.2 kΩ) takes 109 minutes of constant current to reach 4.20 V, then 110 minutes of tapering constant voltage to the 130 mA (C/20) cutoff — 219 minutes, or 3.65 hours, in total.
  • About 70% of the charge goes in during the CC phase; the last 30% takes just as long, which is why the rule of thumb is capacity ÷ current × 1.4, not × 1.0.
  • A linear charger burns the voltage difference as heat: 13.0 Wh from USB, 9.62 Wh stored, 3.38 Wh lost — 74% efficient, with up to 2.0 W in the TP4056 when the cell is at 3.0 V.
  • The float voltage is 4.20 V ±1% — never charge a Li-ion cell above 4.20 V — and a cell below 2.9 V is trickle-charged at about 100 mA until it recovers.
  • Set the current from the cell, not the module: 0.5C is a sensible default, Rprog = 1200 / I(mA) kΩ, and the TP4056's maximum is 1 A — a bigger cell needs a switching charger, not a bigger resistor.
  • Series packs need balancing: a single-cell charger cannot charge two cells in series — use a proper 2-cell charger or a battery-management system.