Mass-Energy Calculator (E=mc²)
Convert between mass and rest energy using E = mc² with c = 299792458 m/s, reporting energy in joules, kWh and kg TNT, or mass in kg.
Real-time Results
How it works
This tool applies the mass–energy relation with a fixed speed of light to turn a mass into rest energy or an energy into equivalent mass. Energy mode also shows kilowatt-hours and kilograms of TNT as comparison units.
Which field is used when I switch Solve For?
Only one field drives the result. With Solve For set to Energy, the engine reads Mass (kg) and ignores Energy (J). With Solve For set to Mass, it reads Energy (J) and ignores Mass (kg). The unused field keeps its default (0.001 kg or 8.988e13 J) but does not affect output.
Why do the kWh and TNT cards disappear in mass mode?
Mass mode returns a single card, Equivalent Mass (m), in kg. The kilowatt-hour and TNT conversions exist only in energy mode. The TNT figure uses a fixed 4.184e9 J per kg convention; it is an energy comparison, not a prediction of any explosion.
Examples and interpretation(2)
How much rest energy is in 2 kg?
- Solve For
- Energy (E) in Joules
- Mass (kg)
- 2 kg
- Set Solve For to Energy (E) in Joules and enter Mass (kg) = 2.
- Compute E = 2 × (299792458)² = 1.7975103574736352e17 J, shown as 1.7975e+17 J.
- Divide by 3.6e6: 4.993084326315653e10 kWh, shown as 4.9931e+10 kWh.
- Energy (E)
- 1.7975e+17
- Energy in kWh
- 4.9931e+10
The highlighted card is total rest energy; the kWh card is the same quantity in a household-scale unit. The TNT card (4.2962e+07 kg) is a fixed-convention comparison only.
What mass is equivalent to 9e16 J?
- Solve For
- Mass (m) in kg
- Energy (J)
- 90000000000000000 J
- Set Solve For to Mass (m) in kg and enter Energy (J) = 9e16.
- Compute m = 9e16 / (299792458)² = 1.0013851... kg.
- The single card shows 1.0014e+0 kg.
- Equivalent Mass (m)
- 1.0014e+0
Only the mass card is produced; the Mass (kg) field is ignored in this mode. The result is an equivalent mass, not a claim that such conversion is practical.
Inputs
| Parameter | Definition & Valid Bounds |
|---|---|
| Solve For | Energy (E) in Joules · Mass (m) in kg |
Formula
Energy mode: E = m·c², kWh = E / 3.6e6, TNT = E / 4.184e9. Mass mode: m = E / c². Each result is formatted with toExponential(4).
How to use
- Choose Solve For: Energy (E) in Joules or Mass (m) in kg.
- In energy mode, enter Mass (kg); the Energy (J) field is ignored.
- In mass mode, enter Energy (J); the Mass (kg) field is ignored.
- Read the highlighted card: Energy (E) in J with kWh and kg TNT, or Equivalent Mass (m) in kg.
- Treat every value as a rest-energy equivalent, not energy released by a specific reaction.
Frequently asked questions
Does the calculator use a rounded value of c?
No. It uses c = 299792458 m/s as defined in the code, so c² = 8.987551787368176e16 m²/s². Results are then shown with four digits after the decimal point in exponential notation.
What happens if I enter a negative or blank value?
The fields declare a minimum of 0, but the engine does not reject negatives; a negative mass or energy simply produces a negative result. Blank or non-numeric text is parsed as 0, giving a result of 0.
Is the TNT figure a real explosive yield?
It is a unit conversion using 4.184e9 J per kg TNT. It compares the computed rest energy with that convention and does not model any weapon, reaction efficiency or released energy.
Related Calculators
More calculators selected by category and topic.
