Battery State of Charge (SOC) Simulator Back
Electrochemistry & Energy

Battery State of Charge (SOC) Simulator

Set capacity, internal resistance, and C-rate to visualize discharge curves (voltage vs. SOC) via equivalent circuit models in real time. Supports Li-ion, LFP, and NiMH chemistries with degradation cycle and high-rate discharge effects.

Battery type

Parameters

Results
Nominal voltage V_nom (V)
Effective Energy (Wh)
Discharge time (h)
Discharge current I (A)
Voltage drop ΔV (V)
Effective capacity Q (Ah)
Dis

Terminal-voltage discharge curve versus SOC (0-100%). Solid line = equivalent-circuit model (OCV − I×R_int).

Crate

Discharge curves comparing C-rates (0.5C / 1C / 2C / 3C). Higher rate means larger voltage drop and smaller usable capacity.

Deg

Estimated remaining-capacity curve versus charge/discharge cycles using an exponential model. The dot marks the current degradation factor.

Theory & Key Formulas

The simplest Rint equivalent-circuit model:

\(V_t = \text{OCV}(\text{SOC}) - I \cdot R_{int}\)

SOC by coulomb counting (current integration):

\(\text{SOC}(t) = \text{SOC}_0 - \frac{\eta}{Q_0}\int_0^t I(\tau)\,d\tau\)

Here \(\eta\) is coulombic efficiency (charge/discharge efficiency), and \(Q_0\) is rated capacity. Heat generation:

\(P_{heat} = I^2 R_{int} + I\cdot T \frac{\partial \text{OCV}}{\partial T}\)

Degradation model (exponential approximation): \(Q(N) = Q_0 \cdot \exp(-k_\text{deg} \cdot N)\), where N is cycle count.

Battery SOC and Charge/Discharge — Understanding Through Conversation

🙋
SOC refers to 'State of Charge,' right? Like the battery level on a smartphone. But how is it actually calculated?
🎓
Yes, that's State of Charge. The simplest method is 'Coulomb counting,' where SOC(t) = SOC₀ - ∫I dt / Q₀, just integrating the amount of charge that has flowed. However, since the actual capacity Q₀ changes due to internal resistance losses and aging, practical applications also use the 'Kalman filter method,' which references the OCV (open circuit voltage) from the voltage to correct the SOC.
🙋
The voltage drops during discharge, right? Is that due to internal resistance?
🎓
That's the main cause. It can be expressed with an equivalent circuit model: terminal voltage Vt = OCV(SOC) − I × R_int. OCV is the 'ideal voltage' that varies with SOC, and when current I flows, the voltage drop I×R_int across the internal resistance R_int is subtracted, giving the terminal voltage. During charging, the sign reverses, becoming OCV + I×R_int.
🙋
What is 'C-rate'? What does '3C discharge' mean?
🎓
1C is 'the current that discharges a fully charged battery in 1 hour.' For a 50Ah battery, 1C = 50A. A 3C discharge would be 150A, theoretically emptying it in about 20 minutes. However, at high rates, the voltage drop becomes large, reaching the cutoff voltage (e.g., 2.5V) earlier, so the actual extractable capacity is less than the rated value. This is called the Peukert effect.
🙋
The discharge curves of Li-ion and LFP look completely different. Why is LFP so flat?
🎓
It's due to differences in electrochemical phase transitions. LFP (Lithium Iron Phosphate) has a wide two-phase coexistence region between LiFePO₄ and FePO₄, during which the potential is nearly fixed. Li-ion (NMC) has a continuous change in lithium concentration, so the voltage changes gradually. The flat characteristic of LFP also makes SOC estimation from OCV more difficult.
🙋
What kind of calculations are done in EV or factory battery management systems (BMS)?
🎓
Mainly: ① SOC estimation (Coulomb counting + voltage correction), ② SOH (State of Health: current capacity / initial capacity), ③ cell balancing control, ④ temperature management (heat generation = I²×R_int), and ⑤ protection against overcharge, overdischarge, and overcurrent. EV BMS calculates these every 100 ms, and the goal is to maintain SOC accuracy within ±1–2% using Kalman filters or machine learning.
🙋
How is battery life determined? How many charges until it's done?
🎓
Generally, the end of life (EOL) is defined as when the capacity drops below 80% of the initial value. Li-ion (NMC) typically lasts 500–1000 cycles, while LFP lasts 2000–4000 cycles. Degradation is often approximated by a model formula like Q(N) = Q₀ × exp(-k×N). Actual degradation strongly depends on temperature, DOD (depth of discharge), and charge rate, with high temperature, deep discharge, and fast charging accelerating the process.

Frequently Asked Questions

SOC (State of Charge) is the current remaining charge (0–100%), while SOH (State of Health) is the ratio of current maximum capacity to initial capacity (100% when new, below 80% at end of life). SOC changes with each charge/discharge cycle, but SOH degrades slowly over the long term. BMS design requires both SOC accuracy (within ±2%) and SOH estimation (within ±5%).
Main methods: ① DCIR (DC internal resistance): Apply a current pulse and calculate R = ΔV/ΔI from the voltage drop. ② EIS (Electrochemical Impedance Spectroscopy): Apply an AC signal and measure frequency-dependent impedance (Nyquist plot). DCIR is simple and suitable for real-time measurement, while EIS can separate interfacial resistance and diffusion resistance in detail.
Charging at high currents risks lithium ions not being uniformly inserted into the negative electrode (graphite), leading to lithium metal deposition on the surface (lithium plating). This lithium dendrite can cause internal short circuits and capacity degradation (SEI growth). Additionally, heat generation from internal resistance (I²R) increases, raising temperature and accelerating electrolyte decomposition.
Driving range = effective energy (Wh) / energy consumption (Wh/km). Effective energy is the usable energy from SOC 100% to 20% (with buffer remaining). Energy consumption depends on vehicle speed, air resistance (proportional to v³), rolling resistance, auxiliary power, and temperature (low temperature increases internal resistance). Generally, highway driving worsens energy consumption (higher air resistance) compared to city driving.
This replaces liquid electrolyte with solid electrolyte (oxide-based Li₂La₃Zr₂O₁₂ etc., sulfide-based Li₆PS₅Cl etc.). Advantages: non-flammable, high voltage compatibility, thinner design. Challenges: high resistance at solid interfaces, inferior performance under high current discharge compared to liquid systems, and high manufacturing cost. Currently, automakers aim for mass production around 2027–2030 for automotive use. From an internal resistance model perspective, R_int is expected to be about 5–10 times that of liquid systems.
In battery pack thermal management design, heat generation Q_gen = I²R + others is calculated from an electrochemical model (P2D model or equivalent circuit model), and temperature distribution is analyzed using thermal conduction CFD (Fluent/OpenFOAM, etc.). This electro-thermal coupled analysis optimizes cooling plate placement, reduces hot spots, and predicts winter performance. Thermal-structural analysis is also possible with Abaqus/Ansys Mechanical.

What is Battery Soc?

Battery Soc is a fundamental topic in engineering and applied physics. This interactive simulator lets you explore the key behaviors and relationships by directly manipulating parameters and observing real-time results.

By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.

Physical Model & Key Equations

The simulator is based on the governing equations behind Battery State of Charge (SOC) Simulator. Understanding these equations is key to interpreting the results correctly.

Each parameter in the equations corresponds to a slider in the control panel. Moving a slider changes the equation's solution in real time, helping you build a direct connection between mathematical expressions and physical behavior.

Real-World Applications

Engineering Design: The concepts behind Battery State of Charge (SOC) Simulator are applied across mechanical, structural, electrical, and fluid engineering disciplines. This tool provides a quick way to estimate design parameters and sensitivity before committing to full CAE analysis.

Education & Research: Widely used in engineering curricula to connect theory with numerical computation. Also serves as a first-pass validation tool in research settings.

CAE Workflow Integration: Before running finite element (FEM) or computational fluid dynamics (CFD) simulations, engineers use simplified models like this to establish physical scale, identify dominant parameters, and define realistic boundary conditions.

Common Misconceptions and Points of Caution

Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.

Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.

Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.

How to Use

  1. Set battery capacity (Ah) using sl_q slider—typical values: 50 Ah for automotive, 2.6 Ah for smartphones
  2. Adjust internal resistance (mOhm) with sl_r—lithium-ion cells typically 10–50 mOhm; higher values increase voltage sag
  3. Define discharge C-rate via sl_c—1C means full discharge in 1 hour; 2C discharges in 30 minutes with steeper voltage drop
  4. Optionally increase degradation (%) using sl_deg to simulate aged cells with higher resistance and reduced usable capacity
  5. Observe the voltage-versus-SOC curve updating in real time, showing voltage collapse near 0% SOC

Worked Example

A 48 V automotive battery pack: 100 Ah capacity, 15 mOhm per-cell equivalent resistance, discharged at 2C (200 A). At 50% SOC with 200 A load current, voltage sag = I × R = 200 × 0.015 = 3 V, reducing nominal 48 V to 45 V instantaneously. After 5% degradation, internal resistance rises to ~15.75 mOhm, sag becomes 3.15 V, and usable capacity drops to 95 Ah, compressing the practical discharge window.

Practical Notes

  1. High C-rates (≥3C) in power tools reveal voltage collapse; Li-ion cutoff typically 2.5 V/cell to prevent copper-dendrite plating
  2. Thermal runaway risk increases with degradation—cells above 5% calendar age often show 20–30% resistance rise in field
  3. Battery management systems (BMS) must derate available current when SOC drops below 10% to prevent voltage regulation failure
  4. Temperature couples with resistance: every 10°C rise adds ~3–5% resistance for lithium-ion chemistry