Mass–energy equivalence is the principle that mass can be converted into energy and energy into mass, with the relationship quantified by E = mc2.

The idea of mass–energy equivalence emerged from attempts to resolve inconsistencies between classical physics and electromagnetism in the early 20th century. Before Einstein, physics treated mass and energy as completely separate quantities: mass was seen as “matter content,” while energy was something objects had due to motion, heat or fields. However, developments in electromagnetism (especially Maxwell’s equations) and experiments with light showed that energy itself carries momentum, hinting that energy and mass might be more deeply connected.
In 1905, Albert Einstein published his special relativity paper and later that year derived a key consequence: if an object emits energy (like light), its mass must decrease by an amount proportional to the energy released divided by the speed of light squared. This led to the compact relation , where
is the speed of light. Later experiments in nuclear physics confirmed the idea dramatically: in processes like nuclear fission and fusion, small losses of mass are converted into enormous amounts of energy, matching Einstein’s equation with high precision.
To derive the relation, we refer to Einstein’s thought experiment, which uses the principles of conservation of momentum and conservation of the centre of mass. Consider a hollow, completely closed box of mass and length
, floating at rest in deep, frictionless space. Suppose a photon of energy
is spontaneously emitted from the left wall towards the right wall (see diagram below). The momentum of the photon is given by
, which can be derived by substituting
and de Broglie’s relation
into Planck’s law
.

According the law of conservation of momentum, the emission of the photon causes the box to recoil to the left with velocity and momentum
. It follows that
, or equivalently,
As the photon travels across the box and strikes the right wall, it transfers its momentum back to the box, bringing the box to rest again. Thus, the box starts at rest and ends at rest, but during the photon’s transit it shifts leftwards by a very small distance , where
is the time taken for the photon to travel across the box. Hence,
Substituting eq20 and eq21 into gives:
Since no external force acts on the system, the centre of mass must remain stationary. To resolve the apparent contradiction caused by the box’s displacement, Einstein concluded that the energy carried by the photon must possess an inertial equivalent mass from the left side of the box to the right side. The shift in the photon’s equivalent mass balances the displacement of the box:
Substituting eq22 into eq23 and rearranging yields the Einstein relation:
This result is not limited to photons, since the photon merely serves as a convenient carrier of energy across the box. Einstein’s thought experiment demonstrates a far more general principle: any form of energy possesses inertia and therefore contributes to the mass of a system. For example, heated objects possess slightly greater mass than colder ones.

Question
Does only apply to an object travelling at the speed of light?
Answer
No. Here, is a fundamental constant, and
acts as a conversion factor between mass and energy. It is similar to how
does not mean an object must be falling with acceleration
. For example, a stationary battery has slightly greater mass when it is fully charged than when it is empty, because stored energy contributes to the battery’s mass — even though the battery is not moving at all.