18650 battery: wiring, voltage and runtime
The 18650 is the most used lithium cell in portable projects. See the voltage for each configuration, how to wire it into a circuit and work out the runtime in the simulator.
Specifications
- Nominal voltage
- 3.7 V per cell
- Full voltage
- 4.2 V
- Safe minimum voltage
- ≈ 3.0 V
- Typical capacity
- 1800 to 3500 mAh
- Size
- 18 mm × 65 mm
- Discharge current
- depends on the model (2 A to 30 A)
- 2, 3 and 4 cells in series
- 7.4 V · 11.1 V · 14.8 V
Pinout
The holder has two wires: red (+) and black (−). Cells in series add voltage and keep capacity; in parallel they add capacity and keep voltage.
18650 holder
| + | Red wire | Pack positive |
| − | Black wire | Pack negative (GND) |
18650 battery calculator
Pick the number of cells, the capacity and the circuit current to see the voltage and runtime.
Calculation: capacity ÷ current × 0.85 (regulator and cell losses). The percentage is a linear estimate from 3.0 V to 4.2 V per cell; the real curve is flatter in the middle.
How to wire it
Place the cells in the holder following the marked polarity. Always use cells of the same model, charge level and age when connecting more than one in series.
Connect the red wire to the circuit positive and the black one to GND. A single 18650 runs from 3.0 V to 4.2 V: fine for an ESP32 (with a regulator), while an Arduino needs a step-up converter or a suitable regulator.
For 5 V use a step-up module, or 2 cells in series (6 V to 8.4 V) with a regulator. Do not wire 2 or more cells straight into 5 V pins.
Charge with a protected charger module (TP4056 with protection or a BMS). Never charge above 4.2 V or discharge below 2.5 V to 3.0 V.
Work out the runtime by dividing capacity (mAh) by the circuit average current (mA) and subtracting about 15 to 20 % for losses.
Example code (Arduino)
With a divider of two equal resistors (for example 100 kΩ) between the battery positive and GND, the middle point can be read on A0. The sketch below converts the reading into battery voltage.
const float VREF = 5.0; // ADC reference (3.3 on ESP32)
const float DIVIDER = 2.0; // two equal resistors
void setup() {
Serial.begin(9600);
}
void loop() {
int reading = analogRead(A0);
float volts = reading * VREF / 1023.0 * DIVIDER;
// linear estimate from 3.0 V (0%) to 4.2 V (100%) per cell
int pct = constrain((volts - 3.0) / 1.2 * 100, 0, 100);
Serial.print(volts);
Serial.print(" V (~");
Serial.print(pct);
Serial.println(" %)");
delay(1000);
}
Common mistakes
- Wiring a 3.7 V battery straight into a 5 V Arduino: the voltage drops below the minimum and the circuit resets or does not start.
- Mixing cells of different models, charge levels or ages in series: the weakest one over-discharges and can be damaged.
- Discharging below 3.0 V: the cell loses capacity and can be ruined. Use over-discharge protection.
- Reversing polarity in the holder or shorting it: the cell heats up and may catch fire. Use protected cells in projects without a BMS.
- Reading the battery voltage straight on a microcontroller pin: 4.2 V exceeds the ESP32 3.3 V limit. Use a voltage divider.
Always check the manufacturer's datasheet for your exact model: pin order can vary between modules.
Frequently asked questions
What is the voltage of an 18650 battery?
Nominal voltage is 3.7 V. Full it reaches 4.2 V and safe discharge goes down to about 3.0 V.
How do I calculate runtime?
Runtime (h) ≈ capacity (mAh) / current (mA) × 0.85. Example: 2600 mAh at 200 mA gives about 11 hours.
Can I connect 18650 cells in series?
Yes, voltages add: 2 cells give 7.4 V, 3 give 11.1 V and 4 give 14.8 V. Use matching cells and, preferably, a BMS with balancing.
What is the difference between series and parallel?
In series voltage adds and capacity stays the same. In parallel capacity adds and voltage stays the same.
Can I power an Arduino from an 18650?
One cell (3.7 V) is too low for the Uno; use a step-up to 5 V. Two cells in series (7.4 V) can feed the VIN pin or the barrel jack.