Long Division Calculator (with Remainder)

Divide whole numbers to get the quotient and remainder, the decimal answer with repeating digits marked, and the long division steps.

A whole number, up to 1,000,000,000,000,000 (10¹⁵).
A whole number other than zero.

Results

Quotient and remainder
22 R 2
Check: divisor × quotient + remainder
56 × 22 + 2 = 1234
Exact decimal
22.03(571428)
Digits in brackets repeat forever (a block of 6).
Decimal rounded to 4 places
22.0357
Long division steps
Step 1: 123 ÷ 56 = 2 (2 × 56 = 112; 123 − 112 = 11) Step 2: 114 ÷ 56 = 2 (2 × 56 = 112; 114 − 112 = 2) Remainder 2 is not zero: add a decimal point and bring down zeros. Step 3: 20 ÷ 56 = 0 (0 × 56 = 0; 20 − 0 = 20) Step 4: 200 ÷ 56 = 3 (3 × 56 = 168; 200 − 168 = 32) Step 5: 320 ÷ 56 = 5 (5 × 56 = 280; 320 − 280 = 40) Step 6: 400 ÷ 56 = 7 (7 × 56 = 392; 400 − 392 = 8) …and so on.

How it’s calculated

Long division splits a dividend into equal groups of the divisor, one digit at a time. Each round has four moves: divide (how many times does the divisor fit?), multiply (that digit × the divisor), subtract (what is left over), and bring down the next digit. When the digits run out, what is left is the remainder.

dividend = divisor × quotient + remainder (0 ≤ remainder < divisor)

To go on into decimals, add a decimal point and keep bringing down zeros. If the remainder ever returns to 0 the decimal ends (1 ÷ 8 = 0.125). If a remainder repeats, the digits repeat forever; they are shown in brackets, so 1 ÷ 6 = 0.1(6) means 0.1666… and 1 ÷ 7 = 0.(142857). A fraction in lowest terms ends only when its denominator has no prime factors other than 2 and 5.

Negative numbers. This calculator uses truncated division: the quotient is rounded toward zero and the remainder takes the sign of the dividend, so −7 ÷ 2 = −3 R −1 (check: 2 × −3 + −1 = −7), and 7 ÷ −2 = −3 R 1. Some textbooks and programming languages choose a different convention for negatives (such as always giving a positive remainder), so check which your course expects.

Example: 1234 ÷ 56. 56 does not fit into 1 or 12, but fits into 123 twice (2 × 56 = 112, 123 − 112 = 11). Bring down the 4 to make 114: it fits twice (112), leaving 2. So 1234 ÷ 56 = 22 R 2, and the check is 56 × 22 + 2 = 1234. Carrying on, 2 ÷ 56 = 0.0357142857…, so the decimal is 22.03(571428), which is 22.0357 to 4 places.

Frequently asked questions

What does R mean in a division answer?

R stands for remainder: the amount left over that is smaller than the divisor. 17 ÷ 5 = 3 R 2 means 5 fits into 17 three times with 2 left over.

How do I write a repeating decimal?

Put the repeating digits in brackets (or draw a bar over them). 2 ÷ 3 = 0.(6) means 0.6666… and 1 ÷ 7 = 0.(142857).

What is the remainder when the dividend is smaller than the divisor?

The quotient is 0 and the remainder is the dividend itself. For example 3 ÷ 8 = 0 R 3, or 0.375 as a decimal.

Why is the remainder negative for a negative dividend?

With truncated division the remainder always has the same sign as the dividend, so that divisor × quotient + remainder gives back the dividend. −7 ÷ 2 = −3 R −1.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator