Long Division Calculator
Quotient and remainder with every step of the long division written out
Loading the tool…
Finds the quotient and remainder of a division and draws the long division one step at a time. Use it to check division homework, divide decimals, convert between fractions and repeating decimals, or find remainders of negative numbers.
How to use
- On the "Long division" tab, enter the "Dividend" and the "Divisor". Decimals such as 7.5 are allowed.
- Under "Answer as", choose "Quotient and remainder", "Decimal places" or "Until it ends or repeats".
- Under "Written long division", step through with "Next step" and "Previous step", or press "Show all". "Written layout" switches between the layouts used in different countries.
- Use the "Repeating decimals" tab to convert fractions and repeating decimals, and the "Remainder (mod)" tab for negative numbers.
How it works
- A check line of the form divisor × quotient + remainder = dividend is shown under the result.
- If the divisor has decimals, the decimal point is moved the same number of places to the right in both numbers. The quotient stays the same; the remainder keeps the decimal point of the original dividend.
- A simplified fraction gives a repeating decimal when its denominator has a prime factor other than 2 and 5. The page shows the length of the repeating block and where it starts.
- Numbers can have up to 30 digits and 12 decimal places. Your inputs are saved in this browser on this device.
Questions and answers
- What is 17 divided by 5 with remainder?
- The quotient is 3 and the remainder is 2. Check: 5 × 3 + 2 = 17.
- How do I divide by a decimal?
- Move the decimal point in both numbers until the divisor is a whole number. 7.5 ÷ 0.25 becomes 750 ÷ 25, so the quotient is 30.
- What is 1/7 as a decimal?
- 0.142857142857…, a repeating decimal in which the six digits 142857 repeat forever. The "Repeating decimals" tab shows the repeating block.
- How do I find the remainder of a negative number?
- It depends on the rule. For −7 divided by 3, the Euclidean and floored rules (Excel MOD) give 2, and the truncated rule (JavaScript %) gives −1. The "Remainder (mod)" tab compares all three.