Stratification of water can occur in multiple ways. Two main types of stratification can be defined; uniform and layered stratification. Layered stratification occurs in all of the ocean basins. The stratified layers act as a barrier to the mixing of water, which can impact the exchange of heat, carbon, oxygen and other nutrients. Due to upwelling and downwelling, which are both wind-driven, mixing of different layers can occur by means of the rise of cold nutrient-rich and warm water, respectively. Generally, the layers are based on the density of water. Intuitively, heavier, and hence denser, water is located below the lighter water, representing a stable stratification. An example of a layer in the ocean is the pycnocline, which is defined as a layer in the ocean where the change in density is relatively large compared to the other layers in the ocean. The thickness of the thermocline is not constant everywhere, but depends on a variety of variables. Over the years stratification of the ocean basins has increased. An increase in stratification means that the differences in density of the layers in the oceans increase, leading to for example larger mixing barriers.
The density of water in the ocean, which is defined as mass per unit of volume, has a complicated dependence on temperature (), salinity () and pressure () (or equivalently depth) and is denoted . The dependence on pressure is not significant, since seawater is almost perfectly incompressible. A change in the temperature of the water has a direct influence on the distance between water parcels. When the temperature of the water increases, this distance between water parcels will increase and hence the density will decrease. A change in salinity induces an opposite reaction. Salinity is a measure of the mass of dissolved solids, which consist mainly of salt. Hence, increasing the salinity will increase the density. Just like the pycnocline defines the layer with a fast change in density, similar layers can be defined for a fast change in temperature and salinity; the thermocline and the halocline . Since the density depends on both the temperature and the salinity, the pycno-, thermo-, and halocline have a similar shape, except that the density increases with depth, whereas the salinity and temperature decrease with depth.
In the ocean, a specific range of temperature and salinity occurs. Using the GODAS Data, a temperature-salinity plot can show the possibilities and occurrences of the different combinations of salinity and potential temperature.
According to the UNESCO formula, the density of ocean water can be determined exactly as follows;
That the density depends more on the temperature than on the salinity can be seen from plots using the GODAS Data. In those plots, it can be seen that locations with the coldest water, at the poles, are also the locations with the highest densities. The regions with the highest salinity, on the other hand, are not the regions with the highest density, meaning that temperature mostly determines the density in the oceans, which can be seen in for example the Arabic See
Ocean stratification can be defined and quantified by the change in density with depth. It is not uncommon to use the Buoyancy frequency, or sometimes called the Brunt-Väisälä frequency as direct representation of stratification in combination with observations on temperature and salinity. The Buoyancy frequency , representing the intrinsic frequency of internal waves, is defined as follows;
In the last few decades, the stratification in all of the ocean basins has increased. Furthermore, in the southern oceans the stratification has even increased more than in the northern oceans. By looking at the GODAS Data provided by the NOAA/OAR/ESRL PSL, the Buoyancy frequencies can be found from January 1980 up to and including March 2021. Since a change in stratification is mostly visible in the upper 500 meters of the ocean, very specific data is necessary in order to see this in a plot. The resulting plots from the GODAS Data might indicate that there is also a decrease in stratification looking at the differences of the stratification between the years 1980, 2000 and 2020. It is possible to see that the change in stratification is indeed the biggest in the first 500 meters of the ocean. From approximately 1000 meters into the ocean, the stratification converges to a stable value and the change in stratification becomes almost non-existent.
In many scientific and news articles, it is claimed that the stratification has increased in all of the ocean basins. In the figure below the trends of the change in stratification in all of the ocean basins have been plotted. This data shows that over the years the stratification has drastically increased. The change have been seen to be the biggest in the Southern Oceans, followed by the Pacific Ocean. In the Pacific Ocean, the increase of stratification in the eastern equatorial has found to be greater than in the western equatorial. This is likely to be linked to the weakening of the trade winds and reduced upwelling in the eastern Pacific, which can be explained by the weakening of the Walker circulation. 
The change in temperature dominates the increasing stratification, while salinity only plays a role locally. The ocean has an extraordinary ability of storing and transporting large amounts of heat, carbon and fresh water. Even though approximately 70% of the Earth's surface consists of water, more than 75% of the water exchange between the Earth's surface and the atmosphere, occurs over the oceans. The ocean absorbs part of the energy from sunlight as heat and is initially absorbed by the surface. Eventually a part of this heat also spreads to deeper water. Greenhouse gasses absorb extra energy from the sun, which is again absorbed by the oceans, leading to an increase in the amount of het stored. The increase of temperature of the oceans go rather slow, compared to the atmosphere. However, the oceans have absorbed over 90% of the extra heat of the Earth since 1955 and the ocean heat uptake has doubled since 1993. The temperature in the ocean, up to approximately 700 meters deep, have been rising almost all over the globe. If the upper-ocean's heat keeps increasing, influencing the density, the stratification in the upper parts of the ocean will change. The stratification in the upper layers will change more than in the layers below and hence the barrier between the upper layers and the deep-water increases, increasing the barrier to mixing.
The salinity is associated with the difference between evaporation and precipitation. Evaporation causes the water to become more saline, and hence denser. Precipitation has the opposite effect; it decreases the density of the surface water. Hence, it can be stated that salinity plays a more local role in the increase of stratification, even though it is less present compared to the influence of the temperature. For example, salinity plays an important role in the subtropical gyre, North (-East) Pacific, North Atlantic and Arctic regions. In the Arctic, the decrease of salinity, and hence density, can be explained by the input of freshwater from melting glaciers and ice sheets. This process and the increase of stratification in the Arctic will continue with the current carbon emissions.
A decline in dissolved , and hence in the supply to the ocean interior, is a likely effect of the increase in stratification in the upper ocean. Since plays a direct and important role in the cycles of carbon, nitrogen and many other elements such as fosfor, iron and magnesium, de-oxygenation will have large consequences. The de-oxygenation in subsurface waters is due to the decrease in ocean mixing, which is caused by the increase of stratification in the upper ocean. To illustrate, in the period between 1970 and 1990, approximately 15% of the de-oxygenation can be explained by an increase of temperature and the rest by reduced transport due to stratification. In the period between and 1967 and 2000 the decrease in oxygen concentration in the shallow waters, between 0 and 300 meters, was 10 times faster in the coastal ocean compared to the open ocean. This has led to an increase of hypoxic zones, which can lead to a change in behavior of the aquatic flora and fauna. The increase of stratification in the upper ocean during the second half of the 21st century can lead to a decoupling between the surface and the deeper oceans. This decoupling can cause de-oxygenation in the deeper ocean as well, since the decoupling makes it less likely for the oxygen to reach the deeper oceans.
However, the change in oxygen concentration is also influenced by changes in circulation and winds. Even though oxygen has decreased widely spread over the oceans, it can also increase locally, due to a variety of influences on the oxygen. For example, between 1990 and 2000, the oxygen in the thermocline of the Indian Ocean and South Pacific Ocean has increased 
The surface mixed layer is the most upper layer in the ocean. Due to the turbulence in this layer, generated by for example winds, surface heat fluxes and evaporation, an increase of salinity can occur. The heat stored in the mixed layer can drive phenomena like El Niño. The depth of the mixed layer is associated with physical, chemical and biological systems and is one of the most important quantities in the upper ocean. Throughout the year, the depth of the mixed layer varies; the layer increases in depth in wintertime and becomes more shallow in the summer. If the mixed layer is really deep, less light can reach the phytoplankton. Phytoplankton have been shown to be important in the global carbon cycle. Furthermore, phytoplankton is at the bottom of the food chain, serving as direct food for big whales, like the humpback whale, and as indirect food for smaller fish, birds and seals.
An exact relation between an increase in stratification and a change in the mixed layer depth has not yet been determined and remains uncertain. There is literature substantiating the statement that in the years from 1970 to 2018, the stratification in the basis of the mixed layer as well as the depth of the mixed layer have increased. Contradicting this result, other literature states decrease of the depth of the mixed layer partly as a result of the increase of upper-ocean stratification. It is found that the mixed layer in the extension of the Kuroshio Current, at the west side of the North Pacific, has decreased with more that 30 meter. This shoaling is caused by weakening of wind and a reduction of seasonal vertical mixing. Furthermore, there exists research stating that heating of the surface of the ocean, and hence an increase in stratification, does not necessarily mean an increase nor decrease in the mixed layer depth. Using the GODAS Data it can be seen that the depth of the mixed layer has increased as well as decreased over time.