The formula
Cost = capacity × (target − start) / (100 × efficiency fraction) × price
Estimate the energy cost of charging a battery.
Variables and input conventions
capacity- Usable battery capacity (kWh)
start- Starting charge (%)
target- Target charge (%)
efficiency- Charging efficiency (%)
price- Electricity price (currency/kWh)
Understanding the relationship
The battery receives capacity times change in state of charge. Grid energy is larger by the inverse of efficiency; multiply that grid energy by the tariff.
Interpreting the result
Usable capacity times the change in charge fraction gives battery energy added. Dividing by efficiency gives grid energy billed at your currency/kWh rate. Efficiency must be positive and at most 100%; equal start and target gives zero energy cost.
Assumptions and valid inputs
Capacity positive; charge percentages from 0 to 100 with target at least start; efficiency above 0 and at most 100%. Price nonnegative. Excludes time-based fees, parking and fixed session charges.
Rounding and numerical precision
Conversions, transport, cooking and digital calculations use a private 640-significant-digit decimal context. Numeric inputs accept a decimal point or comma and scientific notation, up to 100 characters, with nonzero magnitude from 10⁻¹⁰⁰ to 10¹⁰⁰. Transport, cooking and digital tools additionally reject computed reference-unit results above 10¹⁰⁰. Integer products and combination counts are exact within that supported range; non-integer divisions may require rounding. This protects arithmetic, not input measurements, charging behaviour, cooking outcomes or network performance. Choose 0–8 decimal places for display and copying. Trailing zeros are omitted; very small values may round to zero. Display rounding does not change the underlying calculation. Finite-precision arithmetic is not symbolic exact arithmetic.
Accuracy of input data
Extra displayed decimals do not improve input accuracy. Measurement uncertainty, product variability and uncertain chosen rates are separate from rounding. This tool does not propagate measurement uncertainty. Check that its stated assumptions describe your situation.
Units and dimensions
Input-unit changes reinterpret the entered number. A compatible result unit follows where possible; choose another output unit to convert the answer. Length, area, volume and mass are distinct dimensions. Fixed compound units printed on a field remain part of its definition.
References for unit conventions, not endorsements of every calculator’s model.