What Gas Do Batteries Give Off When Charging?

Batteries release several gases depending on their type and condition, but the most common one across nearly all battery chemistries is hydrogen. Lead-acid batteries produce hydrogen gas during normal charging. Lithium-ion batteries can release hydrogen, carbon monoxide, carbon dioxide, and other flammable gases during failure. Nickel-based rechargeable batteries generate both hydrogen and oxygen when overcharged. Understanding which gases come from which batteries helps you recognize warning signs and keep your space safe.

Lead-Acid Batteries: Hydrogen and Hydrogen Sulfide

The batteries in most cars, golf carts, forklifts, and backup power systems are lead-acid batteries, and they’re the most prolific gas producers in everyday life. During normal charging, the electrolyte (a sulfuric acid and water solution) undergoes a chemical reaction that splits water molecules apart, releasing hydrogen gas from the negative plate and oxygen from the positive plate. This happens every time the battery charges, though the amount increases significantly during the final stages of charging and during overcharging.

Hydrogen is colorless and odorless, so you won’t notice it building up. It becomes flammable when it reaches about 4% concentration in air, which is why battery rooms in warehouses and industrial facilities require dedicated ventilation. OSHA standards call for inlet openings near the floor and outlet openings at the highest point of the room, with a minimum vent area of one square foot per 1,000 cubic feet of room volume.

If your car battery smells like rotten eggs, that’s a different gas entirely: hydrogen sulfide. This happens when the battery’s internal chemistry goes wrong, typically from overcharging, a failing voltage regulator, internal plate degradation, or excessive heat in a poorly ventilated engine bay. Hydrogen sulfide is toxic at high concentrations, and the smell is a clear signal that something needs attention. Common triggers include an alternator pushing too much voltage, using the wrong charger, or an aging battery with rising internal resistance that generates heat faster than it can dissipate.

Lithium-Ion Batteries: A Toxic Cocktail During Failure

Lithium-ion batteries, the kind in your phone, laptop, power tools, and electric vehicle, don’t release meaningful gas during normal operation. The danger comes when something goes wrong. A process called thermal runaway occurs when the battery overheats past a critical threshold and its internal chemistry spirals out of control, with temperatures climbing rapidly and gas venting from the cell.

The gases released during thermal runaway are a serious mix. The primary components are carbon dioxide, carbon monoxide, hydrogen, methane, and ethylene. As internal temperatures climb past 200 to 300°C, the liquid electrolyte decomposes and produces hydrofluoric acid (a highly toxic and corrosive gas), fluoroethane, and various hydrocarbon gases like propylene and ethane. At temperatures above 260°C, internal components react with lithium to produce additional hydrogen.

Several of these gases are flammable, and hydrogen and hydrocarbons can ignite or explode if they accumulate in an enclosed space. Carbon monoxide is an odorless poison. Hydrofluoric acid is dangerous even in small amounts, capable of causing severe chemical burns to skin and lungs. This is why lithium-ion battery fires in enclosed spaces like garages, basements, or airplane cargo holds are treated as hazardous material events.

Battery Swelling as an Early Warning

Before a lithium-ion battery reaches full thermal runaway, gas buildup inside the cell can cause visible swelling. This is especially obvious in pouch-style cells, the flat, flexible batteries used in many phones and tablets. If your device’s screen is lifting away from the frame or the battery looks puffy, gases have already accumulated inside from overcharging, excessive heat, manufacturing defects, or normal degradation over time. A swollen battery is not safe to puncture, and it should be handled carefully and recycled through a proper e-waste facility.

Nickel-Based Rechargeable Batteries

Nickel-metal hydride (NiMH) and nickel-cadmium (NiCd) batteries, still found in some cordless phones, older power tools, and hybrid vehicles, produce gas primarily during overcharging. Under normal conditions, the gas phase inside a NiMH cell contains mostly nitrogen left over from manufacturing and a small amount of hydrogen in equilibrium with the electrode.

Once charging passes 100% capacity and enters overcharge territory, the positive electrode begins producing oxygen through a side reaction. Research tracking the internal gas composition of NiMH cells shows that hydrogen pressure builds gradually during charging, then rises more steeply toward the end. Oxygen appears only after the battery is fully charged. As overcharging continues, oxygen pressure climbs and eventually surpasses hydrogen pressure. In one study, oxygen pressure inside an overcharged NiMH cell reached 8 bar (roughly 8 times atmospheric pressure), while hydrogen reached about 2 bar. Most modern NiMH chargers are designed to detect the end of charge and stop, but a malfunctioning charger can push a cell into sustained overcharge, building dangerous internal pressure.

Alkaline Batteries

Standard disposable alkaline batteries (AA, AAA, C, D, 9V) are not major gas producers under normal use. However, when alkaline batteries leak or when a battery is placed in contact with moisture or body tissue (as in the case of a swallowed button battery), electrolysis can occur. This process generates hydrogen gas at the negative terminal and chlorine gas or oxygen at the positive terminal, along with sodium hydroxide. This is the mechanism behind the tissue damage caused by button battery ingestions in children, where the electrical current drives chemical reactions directly against living tissue.

Old or deeply discharged alkaline batteries can also build up small amounts of internal gas pressure from side reactions, which is part of why they sometimes leak. The potassium hydroxide electrolyte seeps out when internal pressure exceeds what the battery seal can contain.

Why Ventilation Matters

Hydrogen is the common thread across most battery types, and it’s the primary safety concern for anyone charging batteries in an enclosed space. It’s lighter than air, so it rises and collects at ceiling level. In a closed room with poor airflow, concentrations can reach the flammable range of 4% in air surprisingly quickly when multiple batteries are charging at once. This is why forklift charging stations, data center battery rooms, and solar energy storage installations all require forced or natural ventilation with high-mounted exhaust points.

For home use, the practical takeaway is simpler. Charge batteries in ventilated areas. If you smell rotten eggs near a lead-acid battery, the battery is either overcharging or failing internally. If a lithium-ion battery is swelling, hot to the touch, or making hissing sounds, move away from it and get it to open air if you can do so safely. The gases from a failing lithium-ion cell are both flammable and toxic, a combination that demands distance, not investigation.