Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Result (decimal)
9
n ÷ (a/b)
Simplified fraction 9 / 1
Unreduced fraction 18 / 2

What this calculator does

This tool divides a whole number by a fraction. Enter a whole number n and a fraction a/b, and it returns the exact answer as a simplified fraction plus a decimal value. It is handy for homework, cooking, woodworking, and any time you need to know "how many a/b-sized pieces fit into n."

The formula explained

Dividing by a fraction is the same as multiplying by its reciprocal (the fraction flipped upside down):

$$\text{n} \div \frac{\text{a}}{\text{b}} = \text{n} \times \frac{\text{b}}{\text{a}} = \frac{\text{n} \times \text{b}}{\text{a}}$$

So you multiply the whole number by the denominator, then divide by the numerator. The "keep, change, flip" rule you may remember from school is exactly this: keep the first number, change division to multiplication, and flip the fraction.

Diagram showing a whole number divided by a fraction equals the whole number times the flipped fraction
Dividing by a fraction is the same as multiplying by its reciprocal: \(\text{n} \div \frac{\text{a}}{\text{b}} = \frac{\text{n} \times \text{b}}{\text{a}}\).

Worked example

Suppose you want to divide 6 by 2/3. Using the formula: $$6 \div \frac{2}{3} = \frac{6 \times 3}{2} = \frac{18}{2} = 9$$ So six wholes contain nine two-thirds. As a decimal the answer is exactly 9.

Another example: \(5 \div \frac{1}{4} = \frac{5 \times 4}{1} = 20\). There are twenty quarters in five wholes.

Advertisement
Visual of a whole number split into pieces of a fractional size
Picturing how many fraction-sized pieces fit into a whole number.

How to use it

Type the whole number, the fraction's numerator, and the fraction's denominator into the three boxes, then read the simplified fraction and decimal result. The calculator also shows the unreduced fraction \(\frac{\text{n} \times \text{b}}{\text{a}}\) so you can follow the steps.

FAQ

Why does dividing by a fraction make the number bigger? Because a proper fraction is less than 1, dividing by it asks how many small pieces fit inside, which is more than the original number.

What if the denominator b is zero? A fraction with a zero denominator is undefined, so use a non-zero denominator.

Can n be negative? Yes. The calculator keeps the correct sign on the result.

Last updated: