Divide two numbers
| Exact decimal | 3.142857 (the digits under the bar repeat) |
|---|---|
| Rounded to 4 decimal places | 3.1429 |
| Fraction (simplest form) | 22/7 |
| Mixed number | 3 1/7 |
| Quotient and remainder | 3 R 1 |
Updated 2026-11-25
What the division calculator shows
A normal calculator shows 22 ÷ 7 as 3.142857143 and stops when the screen is full. This one works with exact arithmetic, so it can tell you the whole story:
| Row | Meaning | 22 ÷ 7 |
|---|---|---|
| Exact decimal | The true decimal; digits under the bar repeat forever | 3.142857 |
| Rounded | Rounded to the number of places you choose | 3.1429 (4 places) |
| Fraction | Dividend over divisor, simplified | 22/7 |
| Mixed number | Whole part plus a proper fraction | 3 1/7 |
| Quotient and remainder | Whole-number division | 3 R 1 |
Under the result there is a link that opens the same problem in the long division calculator, where you can see every step of the working.
Repeating decimals and the bar
When you divide by a number whose prime factors include anything other than 2 and 5 (after simplifying), the decimal never ends. It repeats a block of digits, and mathematicians write a bar (a vinculum) over that block:
- 2 ÷ 3 = 0.666… = 0.6
- 5 ÷ 12 = 0.41666… = 0.416 (only the 6 repeats)
- 22 ÷ 7 = 3.142857 (a block of six digits)
- 1 ÷ 97 repeats a block of 96 digits, which the calculator still finds exactly
If your device cannot show the bar, the Copy button writes the repeating part in brackets, for example 3.(142857). Some countries write a dot above the first and last repeating digit instead; the meaning is the same.
How rounding works
Choose how many decimal places you want in the Round to box. The calculator looks at the next digit: 5 or more rounds up, less than 5 leaves the digit alone. Halves are rounded away from zero, which is the rule taught in school:
1 ÷ 8 = 0.125 → 0.13 (2 places) · 2 ÷ 3 = 0.666… → 0.67 · 5 ÷ 12 = 0.41666… → 0.417 (3 places)
Money is usually rounded to 2 places, measurements to the precision of your instrument. Rounding with 0 places gives the nearest whole number. Note that 22/7 ≈ 3.1429 is close to π (3.14159…) but not equal to it.
Division as a fraction and a mixed number
Every division a ÷ b can be written as the fraction a/b. The calculator divides the top and bottom by their highest common factor to put it in lowest terms; for example 3.75 ÷ 1.5 = 375/150 = 5/2. When the fraction is bigger than 1, it is also shown as a mixed number: 5/2 = 2 1/2. The highest common factor is found with Euclid's algorithm, which you can see step by step on the HCF by long division page.
Quotient and remainder
For whole numbers, the last row gives the quotient and remainder, as in 100 ÷ 8 = 12 R 4 (check: 8 × 12 + 4 = 100). The remainder and the decimal are linked: the remainder divided by the divisor is the decimal part, 4 ÷ 8 = 0.5, so 100 ÷ 8 = 12.5. With negative numbers the sign of a remainder depends on the convention, which is explained on the remainder calculator page.
Dividing decimals and negative numbers
Decimals are converted to fractions behind the scenes (3.75 = 375/100), so 3.75 ÷ 1.5 is computed exactly as 2.5. For signs, the usual rules apply: if exactly one of the numbers is negative the answer is negative; if both are negative the answer is positive. So −45 ÷ 8 = −5.625 and −45 ÷ −8 = 5.625.
Division by zero has no answer. The calculator shows a message instead of a result, because no number multiplied by 0 gives a non-zero dividend.
Want the ÷ sign itself to paste into a document? Copy it from the division symbol page.
Frequently asked questions
How do I divide two numbers with this calculator?
Type the dividend in the first box and the divisor in the second. The exact decimal, rounded value, fraction, mixed number and quotient with remainder appear immediately.
Why does my calculator show 3.142857143 but this shows a bar?
Pocket calculators cut the answer off and round the last digit. This calculator uses exact arithmetic, finds where the digits start repeating, and marks the repeating block with a bar: 22 ÷ 7 = 3.142857.
How do you turn a division into a fraction?
Write the dividend over the divisor and simplify by dividing both by their highest common factor. For example 18 ÷ 24 = 18/24 = 3/4.
How do I get the remainder instead of a decimal?
Look at the "Quotient and remainder" row, or use the remainder calculator, which also explains negative remainders and modulo.
Can I see the working for my division?
Yes. Click "Show this as long division with steps" below the result to open the same numbers in the long division calculator.
What happens if I divide by zero?
Division by zero is undefined, so the calculator shows a message instead of an answer.