SolarBatteryBankCalc
DIY builder calculator

DIY battery pack & BMS calculator — LiFePO4 and 18650/21700

For builders assembling raw cells into a custom 12V, 24V or 48V bank — prismatic LiFePO4 (EVE, CATL) or cylindrical Li-ion 18650/21700 (DIY powerwalls, e-bike packs, salvaged laptop cells). Work out the cell configuration, pack voltage range and BMS size, the part manufacturer calculators skip because they only sell finished packs.

Building lithium packs carries real fire and safety risk — higher still with salvaged or mismatched cylindrical cells. This is a planning calculator, not a build guide. Always test and match cell capacity, top-balance, use a correctly-rated BMS with proper fusing, follow good spot-welding and insulation practice, and rely on established DIY-powerwall community safety guidance. If unsure, do not build.
prismatic ~100–320Ah; 18650 ~2.5–3.5Ah; 21700 ~4–5Ah (mAh ÷ 1000)

Prismatic LiFePO4 vs cylindrical Li-ion

The two DIY routes differ in cell voltage, which changes the series count. LiFePO4 cells are 3.2V nominal, so 12V = 4S, 24V = 8S, 48V = 16S, charging to 3.65V and cut off at 2.5V per cell. Cylindrical Li-ion (18650/21700) is 3.6V nominal, so a "12V" pack is 3S (11.1V), "24V" is 7S (25.9V) and "48V" is 13S (48.1V), charging to 4.2V and cut off near 2.8V per cell. Because each cylindrical cell holds only a few amp-hours, powerwall builders parallel many cells per group — a 13S20P pack is 260 cells.

Sizing the pack and BMS

Adding cells in parallel multiplies capacity at the same voltage; adding cells in series multiplies voltage at the same capacity. A single shared BMS protects the whole pack and must be rated for your maximum continuous load current at the pack voltage, with headroom. The calculator works the cell count, total cells, pack voltage range and a suggested BMS current from your inputs.

Building from salvaged 18650 cells

Recovered laptop and power-tool cells are a popular, cheap source for DIY powerwalls, but they vary in age and capacity. Every cell should be capacity-tested and grouped so parallel groups match, and weak or self-discharging cells discarded — a mismatched parallel group drags the whole pack down and can be dangerous. This tool plans the topology; it does not replace testing and matching each cell.

Why this isn't on manufacturer tools

Brand calculators assume a finished pack with a built-in BMS, so they hide cell count, voltage range and BMS sizing — the exact things a DIY builder needs. This tool is brand-agnostic and sells nothing; enter any cell you have.

Related

Educational planning only — not a build guide and not an electrical design. Lithium assembly is hazardous; test and match cells, balance, fuse and use a proper BMS, and consult qualified guidance. See the methodology.