Mixing citric acid and baking soda triggers an acid-base reaction that produces carbon dioxide gas, water, and sodium citrate. The fizzing you see is carbon dioxide bubbling out of the mixture, and the reaction happens almost instantly when both ingredients are dissolved in water. This simple chemistry drives everything from bath bombs and science-fair volcanoes to effervescent medications and experimental robotics, making it one of the most widely exploited chemical reactions in everyday life.
The Reaction Itself
Citric acid is a weak organic acid found naturally in citrus fruits. Baking soda, or sodium bicarbonate, is a mild base. When they meet in the presence of water, the acid donates hydrogen ions and the base provides bicarbonate ions. Those combine and quickly break apart into carbon dioxide gas and water. The third product, sodium citrate, stays dissolved in the liquid. It is the leftover “salt” of the reaction, the way table salt is the leftover product when hydrochloric acid meets sodium hydroxide.
The reaction is endothermic, meaning it absorbs heat from the surroundings. If you mix the two in a glass of water and touch the outside, you’ll feel the glass get noticeably cooler. That cooling effect is one reason the combination feels refreshing in fizzy drinks and bath products. It also means the reaction speeds up in warm water and slows down in cold water, because higher temperatures give the molecules more energy to collide and react.
In dry form, nothing happens. You can stir citric acid powder and baking soda together and they’ll sit there inert. The reaction requires a solvent, almost always water, to dissolve both powders so their ions can interact. This is why bath bombs hold their shape on a shelf but fizz the moment they hit the tub.
What the Products Actually Are
People tend to focus on the fizz, but the dissolved products matter too. Sodium citrate, the salt left behind, is a common food additive. It acts as a buffering agent that stabilizes acidity levels and as an emulsifier that helps fats and proteins blend together. In processed cheese, for example, trisodium citrate pulls calcium away from milk proteins and disperses the casein, which improves fat emulsification and gives the cheese a smoother, more uniform texture.1PubMed. Effect of trisodium citrate concentration and cooking time on the physicochemical properties of pasteurized process cheese So when you mix citric acid and baking soda in a cooking context, you are not just making bubbles; you are also creating a functional ingredient.
The carbon dioxide, meanwhile, escapes into the air unless something traps it. In a sealed container, the gas builds pressure. In an open glass of water, it simply fizzes away. And the water produced is just ordinary water, chemically indistinguishable from any other water molecule. The reaction does not create anything toxic, which is one reason it shows up in so many consumer products.
How the Ratio Changes What Happens
The proportions you use determine whether you end up with leftover acid, leftover baking soda, or a clean reaction with neither remaining. For a complete reaction where both ingredients are fully consumed, you need roughly one part citric acid to about 2.5 parts baking soda by weight. In practice, most applications deliberately skew the ratio one way or the other.
Bath bombs, for instance, typically use more baking soda than citric acid. The excess baking soda makes the bath water slightly alkaline, which can feel softer on skin. One study evaluating bath bomb formulations tested citric acid at concentrations ranging from about 26% to 39% of the total formula and found that higher citric acid levels influenced the hardness of the bomb, how fast it dissolved, its moisture content, and even how stable its foam was.2Jurnal Kefarmasian Indonesia. Formulation and Evaluation of Patchouli Oil Bath Bomb with Citric Acid as an Acidic Component In other words, tweaking the ratio is not just about chemistry; it changes the physical behavior of the product.
For cleaning purposes, some people prefer a slight excess of citric acid so the solution stays mildly acidic, which helps dissolve mineral deposits and soap scum. For baking, a slight excess of baking soda leaves the batter more alkaline, which promotes browning. The same two ingredients, different ratios, different outcomes.
Why This Reaction Shows Up in Medicine
Effervescent tablets exploit the citric acid and baking soda reaction to dissolve a pill quickly in water, making the active drug easier to swallow and faster to absorb. The fizzing is not a gimmick; it serves a pharmaceutical purpose. Researchers have used mixtures of sodium bicarbonate, citric acid, and tartaric acid as effervescent agents in fast-disintegrating tablets, achieving disintegration times as short as roughly 13 seconds.3PubMed Central. Formulation design and optimization of fast disintegrating Lorazepam tablets by effervescent method That speed matters for patients who have difficulty swallowing conventional tablets.
The reaction also shows up in formulations designed to deliver specific salts to the body. Potassium citrate effervescent tablets, for example, are designed to help reduce certain types of kidney stones. The effervescent approach makes it easier to deliver a therapeutic dose of citrate in a palatable form.4PubMed Central. Formulation, characterization and physicochemical evaluation of potassium citrate effervescent tablets Citrate itself raises urinary pH and binds calcium, which can prevent calcium oxalate crystals from forming. So in this case, the reaction product (citrate salt) is the point, and the fizzing is a bonus that makes the medicine easier to take.
Tartaric acid frequently appears alongside citric acid in pharmaceutical effervescent blends because it reacts with sodium bicarbonate at a slightly different rate, which lets formulators fine-tune how aggressively the tablet fizzes. Using both acids together produces a steadier, more controlled fizz rather than one explosive burst.
The Fizz As an Energy Source
The carbon dioxide generated by this reaction can do mechanical work if you capture it. Researchers have explored this principle in surprisingly creative ways. One recent project built edible pneumatic batteries that use the citric acid and baking soda reaction to generate COâ‚‚ gas, which then inflates soft robotic actuators. These devices were scalable across a range of sizes, with operation times spanning from 20 seconds up to about 650 seconds and COâ‚‚ generation rates that could be tuned across more than an order of magnitude.5PubMed Central. Edible Pneumatic Battery for Sustained and Repeated Robot Actuation The appeal is that every component is food-safe, so a robot powered this way could operate inside the human body and simply dissolve harmlessly afterward.
This is far from the only attempt to harness the reaction’s gas output. Science demonstrations routinely use it to inflate balloons, power small cars, or launch bottle rockets. The underlying principle is the same in all cases: a confined space captures the COâ‚‚, pressure builds, and that pressure can push against something. The reaction is not energetically powerful compared to combustion or even a standard battery, but its safety profile is hard to beat.
Household Cleaning and DIY Uses
You will find countless recommendations online for using baking soda and citric acid (or vinegar, which provides a different acid but a similar reaction) as a household cleaner. The fizzing action can help loosen grime in drains, grout, and toilet bowls. But it is worth understanding what the fizzing actually does and does not accomplish.
The mechanical agitation of the bubbles can dislodge surface-level buildup, which is genuinely useful. And if you use an excess of citric acid, the leftover acid in solution dissolves calcium carbonate deposits, the chalky white scale you see on faucets and showerheads in hard-water areas. That is real chemical cleaning. But the reaction itself neutralizes the acid with the base, so if you mix them in equal proportions first and then apply the resulting solution, you have effectively created salty water with little cleaning power left. For maximum effect, you want to apply them together so the fizzing happens on the surface you are cleaning, or use citric acid alone for descaling tasks.
For drain maintenance, the fizzing can break up soft clogs made of soap and grease. It will not clear a serious blockage caused by hair or solid debris. Setting expectations correctly saves frustration: think of it as a maintenance tool, not a plumber replacement.
What Sodium Citrate Tastes Like and Why It Matters
If you have ever dissolved an effervescent vitamin C tablet in water and noticed the taste is not quite as sour as you expected, sodium citrate is part of the reason. The citrate salt produced by the reaction has a mildly salty, slightly sour flavor that is much gentler than pure citric acid. Research on how humans perceive citric acid and citrate salt mixtures has found that the specific type of citrate in solution affects sourness, puckering, and drying sensations, and that replacing some citric acid with its sodium or potassium citrate salts shifts the flavor profile in measurable ways.6PubMed. Perception of citric acid and citrate salt mixtures in humans
This has real implications for food and beverage formulation. Soft drink manufacturers, candy makers, and sports drink companies all manipulate the balance between citric acid and citrate salts to hit a target flavor. More free citric acid means sharper sourness. More citrate salt means a rounder, less aggressive acidity. When you mix citric acid and baking soda in lemonade or a homemade electrolyte drink, you are essentially performing the same trick: converting some of the sharp acid into a milder salt, which tames the sourness while keeping the drink pleasantly tangy.
Sodium citrate also plays a well-known role in home cheesemaking and modernist cooking. Adding it to melted cheese prevents the proteins from clumping and the fats from separating, which is why it is the secret ingredient in ultra-smooth nacho cheese sauces. You can make sodium citrate at home by simply mixing citric acid and baking soda in water, letting it fizz out, and using the resulting solution. It is the same compound sold commercially as an emulsifying salt.
Safety Considerations
Neither citric acid nor baking soda is hazardous at the concentrations found in food, bath products, or household cleaning. Citric acid can irritate eyes and skin at high concentrations, the same way lemon juice stings a paper cut, but it is not toxic. Baking soda is similarly benign in normal use. The reaction products, sodium citrate and carbon dioxide, are both food-grade substances your body encounters regularly.
The main safety concern involves enclosed containers. If you seal the two ingredients in a bottle with water, the COâ‚‚ pressure can build until the container bursts. This is the principle behind the classic “baking soda volcano” eruption, and it is also why sealed containers of effervescent tablets have vented caps or humidity-sealed packaging. Never mix the ingredients in a tightly sealed glass container; plastic bottles can stretch and eventually pop, but glass can shatter.
Ingesting large amounts of baking soda on its own can cause metabolic alkalosis, a condition where the blood becomes too alkaline. This is not really a concern with the citric acid and baking soda combination, because the acid neutralizes the base. But people who take baking soda as a home remedy for heartburn sometimes consume far more than is wise. If you are mixing these for a homemade fizzy drink, reasonable kitchen quantities are safe. Drinking cups of dissolved baking soda without the acid is a different story.
Temperature, Particle Size, and Other Variables That Change the Fizz
The speed of the reaction depends on several factors you can control. Water temperature is the biggest lever: warm water makes the reaction happen faster and more vigorously, while ice water slows it to a gentle simmer. If you want a dramatic eruption for a demonstration, use warm water. If you want a slow, sustained fizz for a bath bomb, cooler water helps.
Particle size also matters. Finely ground citric acid dissolves faster than coarse crystals, so it reacts faster. Commercial effervescent tablets are formulated with specific particle sizes to control the disintegration rate. At home, if your bath bomb fizzes out in 30 seconds and you want it to last longer, using coarser citric acid granules or compressing the mixture more tightly can slow things down.
The amount of water relative to the dry ingredients changes the dynamics as well. A small splash of water on a pile of mixed powder produces a concentrated, violent fizz. A large volume of water with a small amount of powder produces gentle, dispersed bubbles. This is why dropping a single effervescent tablet into a full glass of water gives a pleasant fizz, while crushing it into a tablespoon of water creates a foaming mess.
Humidity is the enemy of pre-mixed dry blends. Because even atmospheric moisture can trigger a slow reaction, products containing both citric acid and baking soda need to be stored in sealed, dry containers. If your bath bombs are crumbling or your effervescent tablets are already partially flat when you open the package, moisture exposure during storage is almost certainly the culprit.
When Citric Acid Gets Swapped for Other Acids
Citric acid is the most common acid paired with baking soda in consumer products, but it is far from the only option. Tartaric acid, derived from grapes, reacts with baking soda in a similar way and is one of the two acids in traditional baking powder. Cream of tartar, a household staple, is potassium bitartrate, which also reacts with baking soda to produce COâ‚‚. Vinegar, which contains acetic acid, is the classic partner for the baking-soda-volcano demonstration, though it produces sodium acetate rather than sodium citrate as its salt byproduct.
Each acid brings a slightly different reaction speed, a different salt product, and a different flavor profile. Citric acid tends to produce a relatively fast, vigorous fizz and a pleasant tart flavor, which is why it dominates in fizzy drinks and bath products. Tartaric acid is slightly slower and has a sharper, more astringent taste. Pharmaceutical formulations often blend both to get a reaction rate that falls in between, producing steady fizzing rather than a single aggressive burst.3PubMed Central. Formulation design and optimization of fast disintegrating Lorazepam tablets by effervescent method Acetic acid from vinegar produces a weaker fizz volume-for-volume because it is a more dilute acid than crystalline citric acid, which is why vinegar volcanoes are underwhelming compared to what you can achieve with citric acid powder.
If you are choosing between acids for a DIY project, citric acid is the most versatile. It is inexpensive, available in food-grade powder form at most grocery stores, easy to measure precisely, and produces a clean-tasting salt. Vinegar works in a pinch but gives you less control over the ratio and leaves an acetic smell that not everyone enjoys.