In this paper, we study the energy equality for weak solutions to the 3D homogeneous incompressible magnetohydrodynamic equations with viscosity and magnetic diffusion in a bounded domain. Two types of regularity conditions are imposed on weak solutions to ensure the energy equality. For the first type, some global integrability condition for the velocity u is required, while for the magnetic field b and the magnetic pressure π, some suitable integrability conditions near the boundary are sufficient. In contrast with the first type, the second type claims that if some additional interior integrability is imposed on b, then the regularity on u can be relaxed.