Here's the science behind how submarines dive and resurface

Let’s start with the basics: Ships stay afloat because the weight of the water that it displaces equals the weight of the ship. As gravity pulls down on the ship; water creates an opposite upward force called buoyant force, which prevents the ship from sinking.

Related: 27 incredible photos of life on a US Navy submarine

Submarines use ballast and trim tanks, which are filled with air or water to submerge or raise the ship. When the submarine is floating on the surface, the tanks are filled with air causing its density to be less than the surrounding water. When the submarine dives, the tanks are flooded with water causing its density to be greater than the water causing it to sink.

Some submarines use two hulls—one inside of another—instead of ballast tanks. This design allows it to flood the outer hull with water, which causes the vessel to sink, while the crew work and live in the inner one. An example of a double hull design is the Russian Alfa Class submarine considered by many to be the hot rod sub of the Cold War for its incredible speed. Designed during the 1960s, the Alfa Class submarine remains the fastest of its kind till this day, according to Foxtrot Alpha.

As the outer hull fills with water, the submarine dives.

submarine dive and resurface physics one

Brit Lab, YouTube

As the water is replaced by air, the submarine resurfaces.

submarine dive and resurface physics two

Brit Lab, YouTube

This video shows how American submarines dive and resurface using its ballast tanks:

Science Channel, YouTube

TOP ARTICLES
This is how missing or captured troops get promoted

According to the Department of Defense, prisoners of war and those under missing status continue to be considered for promotion along with their contemporaries.

6 reasons Charleston might be America's most gung-ho military city

From Charles Towne Landing to the Medal of Honor Museum, go grab a pint where George Washington drank and read about the military legacy of South Carolina's Atlantic jewel.

This is how long South Korea thinks it will take to conquer the North

South Korea says they are developing new plans to defend against advancing North Korean threats after a data breach left their outdated plans vulnerable.

This stunning video shows how well 100-year-old ammo works today

While original 1911 pistols surely still function today, turns out so does the ammo from that era.

This could be the Army's next rifle — and it's totally awesome

Textron debuted its newest rifle, the Intermediate Case-Telescoped Carbine, at AUSA. It's lighter and more deadly than the current M4.

16 jokes Germans could die for telling under the Nazi regime

The Nazi Party was well short of a majority when it came to power. So it's easy to believe that not everyone was a big fan of Hitler or his ideas.

These really smart people say bigger is better when it comes to building aircraft carriers

In an effort to reduce its fiscal footprint, the Navy is looking at making smaller ships. But these defense researchers say it's a terrible idea.

Now that ISIS is on the ropes, these guys have turned the guns on each other

Two US allies, which were armed and trained by US forces, have turned their weapons on each other, and there isn't much the US can do about it.

This is the definitive history of the world's most advanced fighter jet

The new F-22A Raptor fighter jet is the most advance fighter jet in the world, and it dominates on every level imaginable.

This is how the $102 million B-1A almost replaced the B-52

The plan was to buy 240 B-1As to replace the B-52 as the Air Force's primary strategic bomber, but eventually, they each found their place in the force.