Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 46 · Dimensional Analysis and Scaling

Units and Dimensions

Learn the SI base dimensions, the rule that every term in an equation must match, how to use units as an error detector, and build a small dimension checker in Python.

In 1999 NASA lost the Mars Climate Orbiter, a spacecraft that cost roughly 125 million dollars. Software on the ground reported thruster impulses in pound-force seconds, while the spacecraft's software expected newton-seconds. Nothing in the mathematics was wrong; the units were. A simple check that both sides of the interface agreed on dimensions could have caught it.

Units are not a formality to tack onto answers at the end. They are the cheapest, most powerful checking tool in all of modelling. This lesson shows you how to use them.

What you will learn

  • The seven SI base dimensions and the difference between dimension and unit
  • How to find the dimensions of any derived quantity
  • The rule of dimensional homogeneity and how to use it to catch errors
  • How to automate dimension checks in Python

Key terms

Dimension: the kind of quantity (length, mass, time). Written L, M, T.

Unit: a specific amount of a dimension, such as the meter or the foot, both of dimension L.

Dimensional homogeneity: every term added or equated in an equation must have the same dimensions.

Dimensionless quantity: a pure number with no dimensions, such as a ratio of two lengths or an angle in radians.

Derived quantity: a quantity built from base ones, such as speed L T⁻¹.

Seven cards showing the SI base dimensions and their symbols, with a strip of derived dimensions such as velocity, force, energy and pressure
Seven base dimensions generate every other physical quantity.

Dimension versus unit

The dimension says what kind of thing a quantity is. The unit says how big one chunk of it is. A distance has dimension length whether you measure it in meters, miles or light years. Converting between units of the same dimension is arithmetic. Adding quantities of different dimensions is nonsense.

The international system (SI) has seven base dimensions. In mechanics you will mostly need three: length L (meter), mass M (kilogram) and time T (second). Electric current I (ampere), temperature Θ (kelvin), amount of substance N (mole) and luminous intensity J (candela) complete the set.

Everything else is a product of powers of these. We write the dimension of a quantity x as [x].

Quantity Formula Dimension SI unit
Velocity length / time L T⁻¹ m/s
Acceleration velocity / time L T⁻² m/s²
Force mass × acceleration M L T⁻² newton, N
Pressure force / area M L⁻¹ T⁻² pascal, Pa
Energy force × length M L² T⁻² joule, J
Power energy / time M L² T⁻³ watt, W
Density mass / volume M L⁻³ kg/m³
Frequency 1 / time T⁻¹ hertz, Hz

The golden rule: dimensional homogeneity

An equation that describes the real world must make sense whatever units you choose. That forces two things:

  1. Both sides of = have the same dimension.
  2. Terms that are added or subtracted have the same dimension.

And a corollary: arguments of functions like sin, exp and ln must be dimensionless. You cannot take the exponential of "3 meters". In the cooling law e^(−kt) works because k is 1/time and t is time, so kt is a pure number.

Check the familiar equation of motion x = x₀ + v t + ½ a t²:

  • [x] = L, [x₀] = L ✓
  • [v t] = (L T⁻¹)(T) = L ✓
  • [a t²] = (L T⁻²)(T²) = L ✓

All terms are lengths. The constant ½ is dimensionless, so it does not matter.

Unit checks catch real errors

Suppose a classmate claims the period of a pendulum of length ℓ is T = 2π √(g/ℓ). Check: [g/ℓ] = (L T⁻²)/L = T⁻², so √(g/ℓ) has dimension T⁻¹, a frequency, not a time. The formula is upside down. The correct form is T = 2π √(ℓ/g): [ℓ/g] = T², square root T ✓.

Notice what this did and did not do. It found the error without any physics knowledge. It cannot find a wrong dimensionless factor such as writing π instead of 2π.

Python A tiny dimension checker

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Using units to find an unknown quantity's dimension

Another handy trick: if a quantity appears in a trusted formula, you can solve for its dimension. In the drag formula F = ½ C_d ρ A v² for a body of cross-section A moving at speed v through a fluid of density ρ, the force F is M L T⁻², and ρ A v² is (M L⁻³)(L²)(L² T⁻²) = M L T⁻². So the drag coefficient C_d must be dimensionless. It is: it is a pure number that you read from tables or wind-tunnel measurements.

Common misconceptions

"If the units match, the formula is right." Homogeneity is necessary, not sufficient. E = m v² also has correct dimensions but is off by a factor of ½.

"Dimensionless means unitless, so it can be ignored." Dimensionless numbers (like drag coefficients or Reynolds number) often carry the main physics. Chapter 3's next lesson is about them.

"Angles have units, so sin(θ) is a problem." Radians are a ratio of two lengths (arc over radius) and are dimensionless. Degrees are only a conversion convention.

Try it

Use the interactive builder to see how powers of mass, length and time combine into named physical quantities. Click the plus and minus buttons and compare the result with the table above.

Dimension builder

Check your understanding

Quick check · 5 questions

of 5 answered You scored / 5 · perfect!

  1. 1. What is the dimension of force?

    Force = mass x acceleration = M x (L T^-2) = M L T^-2.
  2. 2. Which statement is true about dimensional homogeneity?

    Added terms and both sides of an equation must match. It is a necessary check, not a proof.
  3. 3. A student claims v = sqrt(g / h) for the speed of water falling through height h. The dimension of sqrt(g/h) is:

    g/h has dimension (L T^-2)/L = T^-2, so its square root is T^-1, not a velocity. The correct form is sqrt(g h).
  4. 4. Why must the argument of exp() be dimensionless?

    The series adds powers of x. If x had a dimension, each term would have a different dimension, which is meaningless.
  5. 5. The equation E = m v^2 has correct dimensions but is wrong. What does this show?

    Constants without dimensions, like 1/2 or 2 pi, are invisible to dimension checks.

Summary

  • Dimension is the kind of quantity, unit is the chosen size. The SI has seven base dimensions; mechanics mostly uses M, L and T.
  • Every term in a sum, and both sides of an equation, must have identical dimensions.
  • Arguments of exp, sin and ln must be dimensionless.
  • Unit checks catch mistakes quickly but cannot find missing dimensionless factors.
  • A small program can track dimensions automatically.

Next: Buckingham Pi and Dimensionless Groups