Chemical Formula Baking Soda and Vinegar: Reaction Explained

By culbreath Editorial · 2026-10-08 · 6 min read

The chemical formula for the baking soda and vinegar reaction is NaHCO₃ + CH₃COOH → CO₂ + H₂O + CH₃COONa. Baking soda (sodium bicarbonate, NaHCO₃) reacts with the acetic acid (CH₃COOH) in vinegar to produce carbon dioxide gas, water, and sodium acetate. This rapid production of CO₂ gas creates the familiar fizzing foam.

What Happens at the Molecular Level

When you mix baking soda and vinegar, you combine a weak base with a weak acid. Baking soda is a salt made of sodium ions and bicarbonate ions. Vinegar is a solution of about 4-8% acetic acid in water.

The reaction starts the moment the two substances touch. The hydrogen ion (H⁺) from the acetic acid meets the bicarbonate ion (HCO₃⁻) from the baking soda. They form carbonic acid (H₂CO₃), which is unstable and breaks down into water (H₂O) and carbon dioxide (CO₂) gas. The remaining sodium ion (Na⁺) and acetate ion (CH₃COO⁻) pair up to form sodium acetate, a harmless salt.

The overall equation is:

NaHCO₃ (s) + CH₃COOH (aq) → CO₂ (g) + H₂O (l) + CH₃COONa (aq)

The (s), (aq), (g), and (l) indicate solid, aqueous (dissolved in water), gas, and liquid states.

Why It Produces Foam

The foam is not a new substance. It is a physical mixture of carbon dioxide gas and the liquid solution. The gas bubbles form rapidly throughout the liquid, and the liquid’s surface tension traps them. This creates a frothy foam that can expand quickly, especially in a narrow container.

Several factors affect how much foam you get:

  • Concentration of vinegar. Standard white vinegar (5% acetic acid) works well. Diluted vinegar produces less gas.
  • Temperature. Warm liquids react faster. The gas also expands more in warm conditions, increasing the foam volume.
  • Surface area of the baking soda. Powdered baking soda reacts faster than a clump because more surface area is exposed to the acid.

If you use too much baking soda, some will remain unreacted because the vinegar runs out of acetic acid first. The reaction stops when one reactant is fully consumed.

Practical Uses

Cleaning Agent

The fizzing action helps loosen dirt and grime. The carbon dioxide bubbles physically agitate particles stuck in drains, on stovetops, or in grout. The sodium acetate solution is mildly alkaline and can help break down grease. Many people use a paste of baking soda and vinegar to clean ovens and sinks. For tough clogs, a combination of baking soda and vinegar followed by hot water can clear slow drains.

Kitchen Science

The reaction is used in some quick baking recipes to create a small amount of leavening. When you add vinegar to a batter that contains baking soda, the CO₂ gas helps the batter rise. This is common in buttermilk pancakes or Irish soda bread where the acid in buttermilk reacts with the baking soda.

Educational Demonstrations

The reaction is a safe example of an acid-base reaction and gas evolution. Teachers often use it to demonstrate stoichiometry. One mole of baking soda (84 grams) produces one mole of CO₂ gas (about 24 liters at room temperature). If you use 5 grams of baking soda, you get roughly (5/84) × 24 = about 1.4 liters of CO₂ gas. This is why a small amount of baking soda can produce a large volume of foam.

Safety and Disposal

The reaction is safe for typical household use. The products are carbon dioxide, water, and sodium acetate (a food-grade salt). You can safely pour the leftover solution down the drain.

A few cautions:

  • Avoid eye contact. The solution can sting if it gets in your eyes. Rinse with water if it does. The American Academy of Ophthalmology recommends flushing the eye with clean water for at least 15 minutes if any chemical gets in American Academy of Ophthalmology.
  • Do not seal the container. If you mix the two in a closed bottle, the pressure from the CO₂ gas can build up and burst the container. Always use an open or loosely covered vessel.
  • Do not inhale the powder. Baking soda dust can irritate the lungs. Mix in a well-ventilated area if you are using large amounts.

For medical concerns, such as accidental ingestion of large amounts, contact a poison control center. Standard household vinegar is dilute enough to be safe for this reaction.

How Different Vinegars Affect the Reaction

White vinegar typically contains 5% acetic acid, but cleaning-grade vinegar can reach 6% or 10%. Apple cider vinegar, red wine vinegar, and balsamic vinegar all contain roughly 4-7% acetic acid, but they also contain sugars, pigments, and other organic compounds.

These extra compounds do not participate in the acid-base reaction, but they affect the foam. Sugars increase the viscosity of the liquid, which can make the foam thicker and more stable. Pigments can stain surfaces if you use the reaction for cleaning. For a clean demonstration or cleaning job, plain white vinegar is the most predictable choice.

If you use a vinegar with a lower acetic acid concentration, you need more volume to fully react with a given amount of baking soda. Five grams of baking soda requires roughly 60 milliliters of 5% white vinegar for a complete reaction. With a 4% vinegar, you would need about 75 milliliters.

Common Mistakes and Troubleshooting

  • No fizzing at all. You may have used expired baking soda. Test it by dropping a pinch into a spoonful of vinegar. If it does not fizz, replace the baking soda.
  • Weak fizzing. The baking soda may be clumped. Crush any lumps before adding it to the vinegar. Cold ingredients also slow the reaction.
  • Foam overflows too fast. Use a larger container or add the baking soda slowly. You can also use less baking soda relative to the vinegar volume.
  • Unreacted baking soda at the bottom. This means you ran out of acid. Add more vinegar to complete the reaction.
  • Strange smell. If you use a vinegar other than white vinegar, the smell of the original vinegar will be present in the foam. This is normal.

Key Takeaways

  • The chemical formula for the reaction is NaHCO₃ + CH₃COOH → CO₂ + H₂O + CH₃COONa.
  • Baking soda (sodium bicarbonate) is a base; vinegar (acetic acid) is an acid. The reaction produces carbon dioxide gas, water, and sodium acetate.
  • The foam is CO₂ gas bubbles trapped in the liquid, not a new chemical substance.
  • The reaction is safe for cleaning and simple science experiments, but avoid sealing containers and protect your eyes.
  • Leftover solution is non-toxic and safe to pour down the drain.

Frequently Asked Questions

What is the chemical formula for baking soda?
The chemical formula for baking soda is NaHCO₃, which stands for sodium bicarbonate. It is a white crystalline powder that acts as a base in chemical reactions.
What is the chemical formula for vinegar?
Vinegar's chemical formula is CH₃COOH, representing acetic acid diluted in water. It typically contains 4–8% acetic acid by volume.
What is the chemical reaction between baking soda and vinegar?
The reaction is an acid-base reaction: NaHCO₃ + CH₃COOH → CO₂ + H₂O + CH₃COONa. This produces carbon dioxide gas, water, and sodium acetate, causing the characteristic fizzing.
What gas is produced when baking soda and vinegar react?
Carbon dioxide (CO₂) gas is produced, which creates bubbles and foam. This gas is also what makes the reaction useful for cleaning and science experiments.
baking sodavinegarchemical reactionsodium bicarbonateacetic acid
← Back to home