Capacitor energy can be read from the charge moved onto the plates and the voltage reached, with the one-half factor coming from the rising voltage during charging. The 12 C, 6 V, and 36 J ledger is exact for an ideal capacitor; real parts have leakage, equivalent series resistance, dielectric absorption, voltage limits, tolerance, and measurement uncertainty.
A charged ideal capacitor stores energy equal to one half of charge times voltage. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Use charge and voltage
The capacitor stores 12 coulombs at 6 volts.
Q=12CV=6V
Energy is half charge times voltage
For an ideal capacitor, stored energy is one half of charge times voltage.
U=21QV
Compute stored energy
One half of 12 times 6 gives 36 joules.
U=21⋅12C⋅6V=36J
Charge and voltage both enter the budget
The checked diagram is the middle row. Other exact rows show the same one-half charge-voltage budget without using decimals.