Dew point is the number that tells you whether the air will deposit moisture on a surface, and it is the reason a cold window fogs while a warm one does not. It is not a comfort index and it is not relative humidity, although the two are often confused. This guide works the formula, shows a worked example, and covers the cases where the approximation breaks.
The most widely used practical formula is the Magnus-Tetens approximation, which gives the dew point T_d from the air temperature T and the relative humidity RH:
\gamma = \ln\left(\frac{RH}{100}\right) + \frac{b\,T}{c + T}
T_d = \frac{c\,\gamma}{b - \gamma}
with the common constants b = 17.62 and c = 243.12\ ^\circ\text{C}, valid for T in degrees Celsius and RH as a percentage. The formula is an empirical fit, not an exact thermodynamic identity, and it is accurate to about 0.35\ ^\circ\text{C} over the ordinary range.
Take an air temperature of 20\ ^\circ\text{C} and a relative humidity of 60%.
\gamma = \ln(0.60) + \frac{17.62 \times 20}{243.12 + 20} = -0.5108 + 1.3220 = 0.8112
T_d = \frac{243.12 \times 0.8112}{17.62 - 0.8112} = \frac{197.23}{16.81} = 11.73\ ^\circ\text{C}
So the dew point is about 11.7\ ^\circ\text{C}. Any surface cooled below 11.7\ ^\circ\text{C} — a metal can from the fridge, a window at night — will collect condensation.