Energy in a battery is stored in the form of **chemical energy**. Here's how it works:
1. **Chemical Reactions**: Inside a battery, two materials (typically metals or compounds) called the **electrodes** (anode and cathode) are immersed in an electrolyte solution. These materials undergo specific chemical reactions that store energy in the chemical bonds of the molecules.
2. **Potential Difference**: The chemical reactions create a potential difference (voltage) between the two electrodes. This difference is the driving force for electrons to move when a circuit is connected between the battery terminals.
3. **Conversion to Electrical Energy**: When a battery is connected to an external circuit, the stored chemical energy is converted into electrical energy. The reaction at the anode releases electrons, which flow through the external circuit (providing power to a device), while ions move internally through the electrolyte.
4. **Rechargeable Batteries**: In rechargeable batteries (like lithium-ion or lead-acid), the chemical reactions that produce electricity are reversible. When the battery is recharged, electrical energy is used to reverse the chemical reactions, restoring the battery's chemical potential.
In summary, a battery stores energy **chemically**, and this energy is later converted into electrical energy when the battery powers a device.