How to Do Long Division Step by Step (Remainder & Decimal)
Master Divide-Multiply-Subtract-Bring Down long division, interpret remainders vs decimals, and spot repeating decimal expansions cleanly.
Long division turns a large division problem you cannot solve in your head into small single-digit arithmetic steps. Once you lock in the four-step loop — Divide, Multiply, Subtract, Bring Down (DMSB) — the exact same routine works for integer remainders and decimal answers alike.
Long Division CalculatorSolve long division with step-by-step quotient and remainder.Inspect Live Division StepsThe 4-Step Loop: Worked Example 487 ÷ 32
Set the dividend (487) inside the division bracket and the divisor (32) on the left.
Cycle 1: Working with 48
- Divide:
32goes into4zero times, so look at48. How many times does32fit into48? 1 time. Write1above the8. - Multiply:
1 × 32 = 32. Write32under48. - Subtract:
48 − 32 = 16. - Bring down: Drop the remaining
7next to16to make167.
Cycle 2: Working with 167
- Divide: How many times does
32go into167?32 × 5 = 160fits cleanly (since32 × 6 = 192is too big). Write5above the7. - Multiply:
5 × 32 = 160. - Subtract:
167 − 160 = 7. - Bring down: There are no integer digits left, so we stop here for integer division: Quotient = 15, Remainder = 7 (
15 R7).
Check your result by reversing: (15 × 32) + 7 = 480 + 7 = 487.
Converting 15 R7 Into a Fraction or Decimal
Two ways to express what is left over:
- As a simplified fraction: Place the remainder over the divisor (
15 7/32). You can simplify, add, or convert fractions back to decimals anytime in the Fraction Calculator. - As a decimal: Add a decimal point (
15.) and bring down.0repeatedly:70 ÷ 32 = 2(64, remainder6)60 ÷ 32 = 1(32, remainder28)280 ÷ 32 = 8(256, remainder24)240 ÷ 32 = 7(224, remainder16)160 ÷ 32 = 5(160, remainder0— terminates!)
So 487 ÷ 32 = 15.21875. Because 32 = 2⁵ contains only prime factor 2, the decimal is guaranteed to terminate; dividing by 7 or 3, by contrast, cycles cleanly forever (0.142857... or 0.333...).
Tools used in this guide
Free, and they run in your browser — nothing is uploaded. See every tool on the Math Calculators page.
Frequently asked questions
What are the 4 steps of long division?
Every cycle repeats four actions in order: Divide the current working number by the divisor, Multiply the quotient digit back by the divisor, Subtract to get a partial remainder, and Bring down the next digit from the dividend.
How do you write a long division remainder as a decimal or fraction?
Put the remainder over the divisor to form a mixed number (e.g., 15 R7 divided by 32 is 15 7/32), or append zeros after a decimal point and continue the same steps to get 15.21875.
When does a division produce a repeating decimal forever?
A fraction in lowest terms terminates only if its denominator's prime factors are 2s and 5s alone (such as 32 = 2⁵). Any other prime factor in the reduced denominator, like 3 in 1/3 or 7 in 1/7, creates an infinite repeating cycle.
What if the divisor does not fit into the next brought-down value?
Write 0 in that place of the quotient above the line, multiply by 0 (leaving the partial remainder unchanged), and immediately bring down the next digit before dividing again.