Gear ratio (GR) equals the number of teeth on the driven (output) gear divided by the teeth on the driving (input) gear: GR = N₂ / N₁. This ratio is dimensionless.
For example, a 15-tooth driving gear meshing with a 45-tooth driven gear gives GR = 45 / 15 = 3, written as 3:1.
Because gear teeth must interlock at the same pitch, teeth count is directly proportional to pitch diameter, so you can also compute the ratio from diameters. As Encyclopaedia Britannica notes, the ratio is fixed by the tooth counts of the meshing pair, which is why gears deliver precise, non-slipping speed and torque conversion.