Consider a cylindrical fluid column of uniform density ρ, area of cross section A and height h,

The mass of the fluid within the column is m = density × volume
= ρAh
If p1 and p2 are the pressures at the top and bottom faces of the column, the forces on the top and bottom faces are respectively.
F1 = p1A + mg (downward) and F2 = p2A (upward) If the column is in equilibrium,
F2 = F1
∴ p2A = p1A + mg = p1A + ρAhg
∴ P2 ~ P1 = ρhg
If p1 = p0 = atmospheric pressure, the gauge pressure
P2 – p0 = ρhg
In the absence of gravity, P2 = p0 But since atmospheric pressure is equal to the weight per unit area of the entire air column above, even p0 will be zero in the absence of gravity.