A class has 12 boys and 18 girls. Your teacher writes two things on the board:

\frac{12}{18} \qquad\text{and}\qquad 12 : 18

They look like the same pair of numbers, just wearing different costumes. Both can be simplified by dividing by 6, giving \tfrac{2}{3} and 2 : 3. So are ratios and fractions literally the same thing?

The short answer: they share the same arithmetic engine, but they answer different questions. A fraction answers "how much of a whole?" A ratio answers "how does this compare to that?" The blurring of the two is harmless for simple cases, but it produces real confusion once you have more than two quantities, or once the "whole" is ambiguous.

What a fraction says

A fraction \dfrac{a}{b} is a part of a whole. The denominator b is the whole (how many equal pieces you cut into), and the numerator a is the part you are selecting.

When you say "I ate \tfrac{3}{4} of the pizza," you are saying: the pizza was cut into four equal pieces, I had three of them. The denominator names the whole, the numerator names the part.

A pizza cut into four equal slices with three slices shadedA circle representing a pizza is divided into four equal wedges. Three of the four wedges are shaded in warm colour to show the part that was eaten. A label below the pizza reads three over four of the whole pizza was eaten. 3/4 of the whole pizza
A fraction is a part of a whole. The whole is the pizza; the fraction $\tfrac{3}{4}$ picks out three of its four equal pieces. The denominator always names the whole, not some other quantity.

What a ratio says

A ratio a : b is a comparison between two separate quantities. There is no "whole" baked in — just two things being compared.

In a class with 12 boys and 18 girls, the ratio of boys to girls is 12 : 18, which simplifies to 2 : 3. This says: for every 2 boys there are 3 girls. The ratio 2 : 3 does not mean "out of some whole of 2" or "out of some whole of 3." It just compares the two groups directly.

To turn a ratio into a "part of a whole," you have to decide what the whole is. If you want the fraction of the class that is boys, you add the two parts together to reconstruct the whole:

\text{boys as a fraction of class} = \frac{2}{2 + 3} = \frac{2}{5}

Notice the denominator. In the ratio 2 : 3, the number 3 is just the count of girls — the number you are comparing boys against. In the fraction \tfrac{2}{5}, the denominator 5 is the total class size. They are different numbers, doing different jobs.

Two arrangements of the same class of thirty students showing ratio view and fraction viewTwo rows of a horizontal layout. The top row shows two grouped rectangles — the left rectangle is labelled boys twelve and the right rectangle is labelled girls eighteen, with a colon symbol between them representing the ratio two to three. The bottom row shows a single long bar divided into five equal parts, with the first two parts shaded darker and labelled boys two-fifths of the whole and the remaining three parts shaded lighter and labelled girls three-fifths of the whole. boys = 12 : girls = 18 ratio view: 12 : 18 = 2 : 3 boys 2/5 girls 3/5 fraction view: parts of the whole class of 30 ratio denominator is the other group (3). fraction denominator is the total (5).
The ratio view compares boys against girls directly: $2 : 3$. The fraction view stacks both groups into a single whole and shows each group's share of it: $\tfrac{2}{5}$ and $\tfrac{3}{5}$. The ratio $2 : 3$ and the fraction $\tfrac{2}{3}$ share two numbers but describe different things — the $3$ in the ratio is girls; the $3$ in the fraction $\tfrac{2}{3}$ would wrongly claim there are only three people in total.

Where the confusion starts

With two quantities and a simple example, the two notations can feel interchangeable, because you can always convert between them:

\text{ratio } a : b \quad\Longleftrightarrow\quad \text{fraction } \dfrac{a}{b}

This works — you can treat the ratio 12 : 18 as if it were the fraction \tfrac{12}{18} for the purposes of reducing to lowest terms. The simplification rules are identical; divide top and bottom by their HCF.

But the two pieces of notation carry different meanings, and two traps follow:

  1. When a ratio has three or more terms, there is no single fraction that represents it. The ratio 2 : 3 : 5 describes a three-way split (boys, girls, teachers, for instance). You cannot squish it into "the fraction \tfrac{2}{3}" — that drops a whole quantity. The right move is to convert each part to its fraction of the total: \tfrac{2}{10}, \tfrac{3}{10}, \tfrac{5}{10}.

  2. When the ratio is between two things that are not subsets of one whole, there is no meaningful "fraction of the total." If a car's speed is 60 km/h and its fuel consumption is 15 km/litre, the ratio 60 : 15 = 4 : 1 is a meaningful comparison, but there is no "total" that 60 and 15 add up to. Forcing them into a fraction gives \tfrac{60}{15} = 4, which is a meaningful rate (km/h per km/litre, whatever that means) but not a "part of a whole."

When the two views agree

For a two-quantity ratio within a single whole, the two views are two ways of saying the same thing.

The ratio is the more general of the two — it survives to three-way, four-way, and n-way splits. The fraction is the more direct — it answers "how much of the whole?" in one number.

Why the denominator changes: the fraction must always add up to 1 when you sum all the parts (because the parts are the whole). The ratio has no such requirement — it is just a comparison, and the sum of its terms is whatever it is.

The tell-tale test

When you are not sure whether to write a problem as a ratio or a fraction, apply this two-question test:

  1. Is there a whole that the quantities are parts of? If yes, you can use fractions. If no, you need ratios.
  2. Are there more than two quantities to compare? If yes, use ratios. Fractions handle only "part of a whole," one pair at a time.

So: a pizza divided between three people in a 1 : 2 : 3 split → start with the ratio (because there are three quantities), and convert to fractions \tfrac{1}{6}, \tfrac{2}{6}, \tfrac{3}{6} for each person's share when you need actual numbers.

Speed-vs-consumption of a car → only a ratio makes sense (no common whole).

A bag of 30 laddoos, 12 of them filled with dry fruit → both work: the fraction \tfrac{12}{30} = \tfrac{2}{5} and the ratio 12 : 18 or 2 : 3 (dry-fruit to plain) both describe the bag correctly. Which you use depends on what question you want to answer.

Speed and distance — ratio only

A train covers 240 km in 4 hours. What is the ratio of distance to time, and can you express it as a fraction?

Ratio: 240 : 4 = 60 : 1, which reads "60 km per hour."

Fraction of a whole? No meaningful whole. Distance and time are not parts of the same thing — you cannot add 240 km to 4 hours and get anything sensible.

What you can do is compute the rate \tfrac{240 \text{ km}}{4 \text{ h}} = 60 \text{ km/h}, which is a ratio with units — arguably a third cousin of the ratio concept, called a rate. It is a number with units, not a "part of a whole."

The rule you can carry

The easiest way to stay out of trouble: if the question has a "whole," go to fractions. If it doesn't, stay in ratios. And if it has three or more quantities, ratios are the only game in town.

Related: Percentages and Ratios · Fractions and Decimals · Fraction Is a Ratio, Not a Division Command · Ratios and Proportions Are the Same Thing — Right? (No.)