We talk about the energy identity for stationary solutions of a supercritical semilinear elliptic equation. Additionally, we derive sharp regularity estimates for these solutions in Sobolev spaces. Our arguments are inspired by the remarkable breakthroughs of Naber and Valtorta, which concern the energy identities of Yang-Mills connections and harmonic maps respectively.