For Science!

Following are the results of our science experiment, which set out to determine whether tapping on a soda can will actually cause it to foam less than a soda can that has merely been dropped and/or shaken, but not tapped.
Observation
People tend to tap on soda cans, either because they believe this will prevent the soda inside from foaming over, or because they saw John Goodman do it in an episode of Roseanne one time.
Hypothesis
Tapping the soda can does nothing. If a shaken soda can does not foam over, it is because enough time has passed for the soda inside to settle itself -- this has nothing to do with whether or not some loser tapped on the can.
Predictions
If two cans of soda are equally agitated and one can is tapped while the other sits still, there will be no difference in the amount of foaming (as long as the same amount of time has elapsed).
Tests
Two cans are agitated at the same time, in the same manner, for the same duration. One can is left alone while someone taps on the other one for a set period of time. Both cans are opened at the same time, over a garbage can, and the results are observed. Then Doug goes and gets paper towels while Rebecca heads to the sink to rinse the soda off her hands.
Results
Based on the data we've collected (see Table 1), it seems certain that tapping has virtually no effect on the amount of foam one can expect from a soda can. The data in the Table 1 supports this -- you will notice, actually, that there is frequently more foam in the tapped cans than in the untapped cans.

In addition to those tests, we had two days of observational experimentation. The first day, we dropped one bottle of Sprite and left the other alone. We then observed what happened when the agitated bottle was opened. The second day, we dropped two cans of root beer and listened to them.

For the first of these, the watching of the Sprite, we noticed that there were some bubbles collecting on the sides of the bottle, but that the majority of them were floating in the center. When they seemed to have mostly settled down, we opened the bottle and noticed that the bubbles all increased in size, and new bubbles were formed. These, of course, all shot up and caused a bit of foam.

When the unagitated Sprite bottle was opened, we noticed that lots of bubbles appeared in the center of the liquid and rose to the top, but as they were smaller and fewer in number, they did not cause any considerable amount of foam. We spent awhile shaking up and re-opening these bottles and came to the conclusion that it would be difficult for tapping to have any effect at all.

What we think happens is this: when the soda is shaken, carbon dioxide is separated from the solution. This increases the volume inside the container, which causes an increase in pressure. If you allow the soda to sit long enough, the C02 will re-dissolve into the solution. If you tap the container, the only effect you might have is to stop the CO2 from dissolving in the solution, which actually increases your chances of having a foamy mess on your hands.

In the listening test, we first put the root beer to our ears and noted that we could not hear anything and felt a bit foolish. We then dropped the cans from the top of the door and listened for awhile, again feeling foolish. This time, however, we listened for a bit longer, so we added cold ears and cheeks to the equation. After about a minute or so, it sounded the same, no change in the amount of noise was discernable. Rather than waiting for the contents of the cans to calm down completely, they were opened with a minimum amount of foam. So, if you listen to your soda can and can't hear anything, there's a good bet that you can safely open it. Otherwise, maybe wait about a minute.

Conclusion

Tapping on a soda can will not decrease the liklihood that it will foam over on you when opened. It will, however, give you something to do while you wait for the contents to calm down. Generally speaking, one minute is a sufficient amount of time to wait before opening a shaken soda can. Of course, these tests were all done in Portland, Oregon and the majority of the soda was cold. Results at other altitudes with other temperatures of soda are unknown.

Personnel

These tests were conducted over a six week period by Rebecca Campbell, Doug Mandell, and Philip Graham. It might be argued that they were supposed to be working at the time.



Table 1
Date Shaking Method Time Shaken (sec.) Time Tapped (sec.) Results - TAPPED Results - UNTAPPED Soda Notes
2003-09-16dropped from shelf10no foam-overslight foam-overDiet 7-Upcold soda
2003-09-17shaking only1010generous foam-over (no spill)no foam-overDiet 7-Upsoda was tepid
2003-09-18shaking only1010no foam-overno foam-overDiet 7-Upcool soda (between tepid and cold)
2003-09-19Yar, we be droppin' the scurvy rootgrog from the top of the door, then shakin'.1010HUGE foam-overHUGE foam-overA&W Root Beernew soda! down with diet 7-up!
2003-09-23shaking only1010slight foam-overslight foam-overHansen's Creamy Root Beer
2003-09-24dropped from top of door, then shook1010HUGE foam-overHUGE foam-overA&W Root Beerwe're thinking we need to increase tapping time
2003-09-25dropped from top of door, shook1020HUGE foam-overHUGE foam-overA&W Root Beermight still need to increase tapping time. tomorrow, rebecca will tap until she feels it won't foam over.
2003-09-26dropped from top of door, shook 10 seconds1045slight foam-overslight foam-over (but less than tapped can)A&W Root Beerwe are still unable to establish a link between tapping and less foam. so far, all tapping has been on top of can -- will switch to side at some point.
2003-09-29dropped from top of door20copious foam-overage. much spillage.copious foam-overage. not as much spillage.A&W Root Beerhave determined that john will drink any beverage put before him.
2003-09-30dropped from top of door30the foam rose out of the can and covered the whole top, but did not spill overgenerous foam-over, some spillageA&W Root Beertoday's tapping was on the side of the can. excellent, exciting results!
2003-10-01dropped from top of door30foamed over, slight spillagefoamed over, slight spillage (though probably less than tapped can)A&W Root Beertapping was on side of can with mostly tapping, but also some flicking. Philip is concerned that the tapping is inconsistent and would like us to use a regulated tapping instrument, like his silver pen.
2003-10-02dropped from top of door30it esploded!it esploded!A&W Root BeerHoly cow! There was no stopping that foam! Also, tapping was on side of can.
2003-10-03dropped from top of door60some foam, no spillsome foam, no spillA&W Root Beertapped on side of can
2003-10-07dropped from top of door30some foamsome foamA&W Root Beerstill unable to prove that tapping does ANYTHING AT ALL. used regulated tapping instrument (very melodic) on side of can.
2003-10-09dropped from top of door. we always drop from top of door.60minimal foammore foam than tapped can, no overspillA&W Root Beertapping today was on side with regulated tapping instrument (my scissors). i tapped mostly at the bottom, occasionally making successive taps starting at the bottom and working my way up.
2003-10-10dropped from top of door60ALMOST NO FOAM! didn't even spill over the opening. WOO HOO!it spurted upon opening, and there was some slight foam. certainly enough to escape the opening, but not enough to spill over the side of the can.A&W Root Beertapping was on side with the regulated tapping instrument again. we basically did the same thing we did yesterday.
2003-10-14dropped from top of door60foamed over, but did not spillbarely foamed overA&W Root Beertapping was with regulated instrument on side again. overall results still rather inconclusive.
2003-10-15dropped from top of door60no foam-overno foam-overA&W Root Beertapping was on side, with regulated tapping instrument. it's beginning to seem that tapping is merely something to do to pass the time while waiting for the foam to subside.
2003-10-22dropped from top of door45it fizzed, it foamed, it spilled over the sides of the cansame as tappedA&W Root Beerused regulated tapping instrument. soda was cool, but not cold. tapped can had a much bigger dent from the impact of dropping from the door than the untapped can, which may account for them foaming the same amount.
2003-10-23dropped from top of door45a little spray, slight foamagea little spray, slight foamage (though possibly less than tapped can)A&W Root Beerthis is getting a little ridiculous. how can the tapping do NOTHING? (used regulated tapping instrument again, tapped mostly at bottom.)
2003-10-24dropped from top of door45a bit of a spurt upon opening, slight foamsame as tapped canA&W Root Beertapping was on bottom of can with regulated tapping instrument.
2003-10-27dropped from top of door45some foam, no spillageless foam than tapped canA&W Root Beerwe dropped a third can today and opened it immediately. IT ESPLODED! tapping was on bottom of can again with tapping instrument. still not the slightest indication that tapping does a damned thing.
2003-10-28dropped from top of door60ka-blooey! really, this is not looking good.some foam, did not escape bottleSpriteswitched to 20oz bottles today. this enabled us to see bubbles collecting on the side of the bottle. tapping was more forceful than normal, but we were able to target the more bubbly areas. it was therefore surprising when the tapped can esploded!
2003-10-29dropped from top of door43no foamno foamCoca Cola (in a clear bottle)the tapping didn't begin right away because we were comparing the levels of air/gas at the top of the bottles. they were about the same. tapping commenced, but the bubbles didn't seem to collect on the side. really, a most disappointing experiment.
2003-10-30dropped from top of door45slight foam, no spillslight foam (though less than tapped bottle)Sprite (in green plastic bottle)tapped lightly today, and at a suggestion from my friend howdy, we were careful to not touch the bottles except in the cap area to make sure that temperature isn't a huge factor.

philip is growing more and more adamant that bubbles on the side of the bottle/can aren't what causes the foam-over. doug is just getting smug. today's results lend credence to philip's theory, though. getting bubbles off the side doesn't appear to do much. we are clearly going to have to investigate the nature of the CO2/soda solution. also, does the amount of pressure increase inside the container when shaken? it seems likely.

we also noticed that if you open a bottle that's settled, a bunch of bubbles appear in the middle of the container and rise to the top. there just aren't enough of them to cause a foam-over. we've still got plenty of work to do...