The energy mass calculator works by multiplying the input mass by the speed of light squared (c²), as per Einstein's equation. This provides the energy equivalent of the input mass, showcasing the energy-mass equivalence principle.