Capacitor Energy Calculator
Stored energy (½CV²) and charge (Q = CV) for any capacitance and voltage.
Capacitor energy and charge
Show the Larzscript program that just ran
Run a calculation to see the exact program.
This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.
The formulas
Worked example, computed above
1000 µF at 12 V: 0.072 J, holding 12 mC.
What is verified
Voltage round-trips exactly back out of a computed stored energy, matching the ½CV² identity in reverse — see tests/test_emwaves.lz.
Frequently asked questions
What is the energy stored in a capacitor?
E = ½CV² — a 1000 microfarad (0.001 F) capacitor charged to 12 V stores 0.072 J.
Why is energy proportional to V squared, not V?
Because charging is a ramp: the first bit of charge goes on at low voltage (cheap), the last bit at the full voltage (expensive) — integrating that ramp over the charging process gives the ½CV² result, the same reasoning as ½kx² for a spring.
How much charge is stored?
Q = CV — the same 1000 µF capacitor at 12 V holds 12 mC of charge, separate from (but related to) the energy.
Where does this matter practically?
A camera flash capacitor (often ~150 µF charged to around 300 V) stores about 6.75 J, released in a fraction of a second — far more power than the battery alone could deliver directly.
Every number on this page is computed by the open-source larzscript-physics library (emwaves, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →