Juanmonino/Getty Images

You know what we're talking about.

If you've ever washed off canned beans before making a salad or adding them to pasta, and wondered what that soap-esque lather is foaming up, you're not alone. Did you accidentally spill soap in your colander? Are your beans still safe to eat? What could this possibly be?

Turns out, there's a scientific reason your beans foam up, as recently discussed on food website, The Kitchn. Since canned beans are pre-cooked so you can eat them immediately, starches and proteins from the beans are depsoited into the canning liquid, according to Jackie Newgent, RDN, author of The All-Natural Diabetes Cookbook: The Whole Food Approach to Great Taste and Healthy Eating. "This can also cause foaminess, especially in chickpeas and white beans," Newgent added.

A feature present on beans called saponins also contributes to the foam-like substance appearing on your beans. "Saponins are a group of naturally occurring plant compounds found in beans and other plant foods, like quinoa and spinach, that can produce foam when they're dissolved in water or other liquid," explained Newgent.

The foam is indeed safe to consume, and Newgent indicated that the liquid may even have some positive benefits like reducing blood cholesterol and offering anti-obesity and anti-inflammatory properties. (Cue to "chickpea water" popping up on our grocery store shelves by 2020.)

WATCH: The Only Salad Dressing You'll Ever Need

Of course, if you're buying canned beans cooked with salt, washing the beans off before using may help slash their sodium content, as several studies have shown. Key takeaway: The foamy substance is totally safe to consume. Carry on in all salad-making activities. 

Now, what about the white stuff on cooked salmon?