Units as a Check on Whether an Expression Makes Sense
Use units to spot impossible formulas, mismatched measurements and upside-down rates before you calculate anything.
Key takeaways
- Quantities can be added, subtracted or compared only when they measure the same kind of thing in the same unit.
- Multiplying and dividing quantities multiplies and divides their units, which can then cancel.
- The two sides of a meaningful equation must carry matching units.
- Convert mixed units, such as minutes and hours, before combining them.
- A unit check can prove an expression wrong but cannot confirm pure numbers such as 2 or 1/2.
Units let you test an expression without knowing the right answer. Attach a unit to every letter and number that measures something, then combine the units by the same operations. If you are adding unlike units, or if the final unit is not what the question asks for, the expression is wrong.
For example, if d is a distance in kilometers and t is a time in hours, then d/t has units of kilometers per hour, which is a speed. The expression t/d has hours per kilometer, so it cannot be a speed.
The two basic rules
The first rule governs addition. You can add 3 meters to 4 meters and get 7 meters. You cannot add 3 meters to 4 seconds in any useful way. The same restriction applies to subtraction, and to both sides of an equals sign or inequality.
The second rule governs multiplication and division. Units behave like algebraic factors. Meters times meters is square meters. Meters divided by seconds is meters per second. A unit divided by itself cancels.
Units come from the definitions of your letters, so careful variable definitions make this check almost automatic.
Checking a total
Say adult tickets cost p dollars each and child tickets q dollars each, and a group buys a adult and c child tickets.
The expression pa + qc works. Here p is in dollars per ticket and a is in tickets, so pa is in dollars. The same holds for qc, and the sum is in dollars.
The expression p + a does not work: it adds dollars per ticket to a number of tickets. The expression (p + q)(a + c) has units of dollars, so it passes the check, yet it is still wrong, because it charges adult prices to children and the reverse. Passing a unit check is necessary, not sufficient.
Perimeter or area
Geometry formulas give quick examples. For a rectangle with length l and width w in meters:
| Expression | Unit | Could it be |
|---|---|---|
| 2l + 2w | m | a perimeter |
| lw | m² | an area |
| 2lw | m² | twice an area, not a perimeter |
| l + w² | mixed | nothing meaningful |
If you cannot remember whether the area of a circle is 2πr or πr², the units answer. With r in meters, 2πr is in meters, so it is a length, the circumference. Only πr² is in square meters.
Volume works the same way. For a cylinder, πr²h has units m² · m = m³. The surface area of a closed cylinder, 2πr² + 2πrh, has two terms that are each in m².
Rates the right way up
Rates are where units help most, because a rate and its reciprocal look so much alike.
A car uses fuel at 6 liters per 100 kilometers. How many liters for 250 kilometers?
250 km × (6 L / 100 km)
= 250 × 6 / 100 L km cancels
= 15 L Had you written 250 × 100/6, the units would be km × km / L, which is nothing you want. The error shows before any arithmetic.
The same logic selects among d = rt, d = r/t and d = t/r. Only r times t, as (km/h) × h, leaves kilometers. More forms are in the distance, rate and time formula.
Mixed units
A unit check also catches quantities of the right kind in the wrong size. Suppose a cyclist rides at 20 km/h for 45 minutes.
The product 20 × 45 = 900 has the unit km · min/h. That is technically a distance multiplied by a ratio of two time units, but it is not 900 kilometers. Convert the time first.
45 min × (1 h / 60 min) = 0.75 h
Then 20 km/h × 0.75 h = 15 km.
Multiplying by a fraction equal to 1, such as 1 h / 60 min, changes the unit without changing the quantity. This technique is the subject of dimensional analysis.
Squared units need the factor squared. Since 1 m = 100 cm, 1 m² = 100² cm² = 10,000 cm². Converting 3 m² gives 30,000 cm², not 300.
Checking a rearranged formula
When you solve a formula for a different letter, units tell you whether the algebra went the right way.
From d = rt, solving for time should give t = d/r. The units are km ÷ (km/h) = h, as required. The mistaken t = r/d gives (km/h) ÷ km = 1/h, which is not a time.
Take the density relationship ρ = m/V, with mass in grams and volume in cubic centimeters. Solving for volume, V = m/ρ gives g ÷ (g/cm³) = cm³. The alternative V = ρm gives g²/cm³, so it is wrong. Practice with solving formulas for another variable.
Roots, powers and exponents
Square roots halve unit exponents. The side of a square with area A in m² is √A, in meters.
For a dropped object, ignoring air resistance, the distance fallen from rest is d = (1/2)gt², where g is the acceleration due to gravity, about 9.8 m/s² near Earth's surface. The units are (m/s²) × s² = m. Solving for time gives t = √(2d/g), with units √(m ÷ (m/s²)) = √(s²) = s.
Exponents themselves must be pure numbers. In an expression such as 2^(t/5), where t is in hours, the 5 should be read as 5 hours, so that the units cancel. An exponent of "3 kilograms" has no meaning.
Hidden units in plain numbers
Some numbers in a formula carry units. In the fare 3 + 2.5m dollars, with m in miles, the 3 is in dollars and the 2.5 is in dollars per mile. Then 2.5m is in dollars, and the two terms can be added.
Temperature conversion, F = (9/5)C + 32, follows the same idea: the 9/5 is Fahrenheit degrees per Celsius degree, and the 32 is in Fahrenheit degrees. See rearranging temperature formulas.
When a formula seems to add unlike things, look for a number whose unit was left unstated. If no sensible unit fixes it, the formula is suspect.
Building an expression from its units
Units can also suggest how to put quantities together. Suppose you are painting a wall. You know its area A in square meters, the coverage c of the paint in square meters per liter, and the price p in dollars per liter. You want a cost in dollars.
Start with what you need to cancel. Dividing A by c gives m² ÷ (m²/L) = L, the liters of paint required. Multiplying by p gives L × dollars/L = dollars. So the cost for one coat is Ap/c.
For a wall of 30 m², coverage of 10 m²/L and a price of 12 dollars per liter, the cost is 30 × 12 / 10 = 36 dollars. These are example figures, and a real purchase would round up to whole cans.
Compare the alternative Ac/p. Its units are m² × (m²/L) ÷ (dollars/L), or m⁴ per dollar. That cannot be a cost.
Units suggest the arrangement, but you still need the situation to supply any pure numbers, such as a factor of 2 for two coats.
Ratios without units
When you divide two quantities with the same unit, the units cancel completely. A 15 cm shadow compared with a 5 cm stick gives the ratio 3, with no unit. Percentages and scale factors are pure numbers of this kind.
That is why a scale factor can multiply any length without changing its unit. If a drawing is enlarged by a factor of 3, a 4 cm line becomes 12 cm. Areas on the drawing are multiplied by 3² = 9, because two lengths are each tripled.
Be careful before adding ratios. A 10 percent figure of one total and a 10 percent figure of a different total are both unitless, yet they measure parts of different wholes.
What a unit check cannot see
Units are silent about pure numbers. The expressions d = gt², d = (1/2)gt² and d = 7gt² all produce meters. Only one is correct.
They also cannot detect a swapped quantity of the same kind, such as using a radius where a diameter belongs, or a wrong sign, such as l − w in place of l + w.
So combine checks. Test with simple values, ask whether the size is plausible, and consider extreme cases. If a trip's time formula gives a longer time when speed increases, something is wrong whatever the units say. See reasonableness checks and what a formula assumes.
Try a few
Decide which expressions could give a time in hours, where d is in km, v in km/h and s in minutes.
- d/v: km ÷ (km/h) = h. It could.
- v/d: 1/h. It could not.
- d/v + s: adds hours to minutes. It needs conversion.
- d/v + s/60: with the 60 read as minutes per hour, both terms are hours. It could.
The fourth might describe a drive of d kilometers plus a stop of s minutes. At d = 120, v = 80 and s = 30, it gives 1.5 + 0.5 = 2 hours.
Common questions
Do I need to write units on every line?
Not always. It is enough to check them when you set up an expression and again on the final answer. Writing them throughout helps when conversions are involved.
Can two different quantities have the same unit?
Yes. Perimeter and height are both lengths. A unit check confirms the kind of measurement, not which particular measurement you computed.
What about counts such as tickets or people?
Treating them as units is a helpful bookkeeping device. "Dollars per ticket times tickets" shows clearly why a price multiplied by a count gives money.