Long Division Calculator

Math Updated 31 Oct 2026

Divides one whole number by another and shows the long division step by step, the way it is taught at school: bring down a digit, see how many times the divisor goes in, multiply, subtract and carry the remainder. You get the quotient and remainder, the answer as a mixed number, and the exact decimal, with any repeating digits marked in brackets.

  • Both numbers are whole numbers; decimals can be scaled to whole numbers first.

Formula

dividend = divisor × quotient + remainder, 0 ≤ |remainder| < |divisor|
  • Long division works digit by digit from the left: bring down the next digit, divide by the divisor, write the whole-number result in the quotient, multiply back and subtract to get the remainder that carries to the next step.
  • With negative numbers, the quotient is rounded toward zero and the remainder takes the sign of the dividend, as in most programming languages: −17 ÷ 5 = −3 R −2, because −3 × 5 − 2 = −17.
  • The decimal is exact. A fraction in lowest terms gives a terminating decimal only when the denominator has no prime factors other than 2 and 5; otherwise the digits repeat, shown in brackets. Up to 60 decimals are shown.

1234 ÷ 7

Inputs
  • Dividend (number being divided): 1234
  • Divisor (number to divide by): 7

12 ÷ 7 = 1 r5; bring down 3 → 53 ÷ 7 = 7 r4; bring down 4 → 44 ÷ 7 = 6 r2. So 1234 ÷ 7 = 176 R 2 = 176 2/7 = 176.(285714).

Sources & references

Frequently asked questions

How do you do long division?
Divide, multiply, subtract, bring down, and repeat. For 84 ÷ 4: 8 ÷ 4 = 2, 2 × 4 = 8, 8 − 8 = 0; bring down 4, 4 ÷ 4 = 1. The answer is 21.
How do I write the remainder as a fraction?
Put the remainder over the divisor. 17 ÷ 5 = 3 R 2 = 3 2/5 = 3.4.
How do I divide decimals with long division?
Move the decimal point in both numbers by the same number of places until the divisor is a whole number. 7.5 ÷ 0.25 becomes 750 ÷ 25 = 30.
Why does 1 ÷ 7 repeat?
When dividing by 7 there are only 6 possible non-zero remainders, so they must eventually repeat, and so do the digits: 1/7 = 0.142857142857… = 0.(142857).

Related calculators

Adding Fractions Calculator Adds up to five fractions or mixed numbers and shows the working. The calculator finds the least common denominator (LCD), rewrites each fraction over it, adds the numerators and simplifies the answer. You get the result as a simplified fraction, as a mixed number and as a decimal. Negative fractions are allowed, so you can also use it to subtract. Fraction Calculator Adds, subtracts, multiplies and divides two fractions, simplifies a fraction to lowest terms, and converts between fractions and decimals. Fractions can be entered as simple fractions (7/4) or as mixed numbers (1 3/4). Every answer is reduced to lowest terms and also given as a mixed number, an exact decimal with any repeating digits marked, and a decimal rounded to six places, together with the working: the common denominator for addition and subtraction or the reciprocal for division. GCD Calculator (Greatest Common Divisor) Finds the greatest common divisor (GCD), also called the greatest common factor (GCF) or highest common factor (HCF), of up to 15 whole numbers: the largest number that divides all of them without a remainder. Enter the numbers separated by commas or spaces and choose how to see the working: the Euclidean algorithm step by step, or the prime factorization of each number with the shared factors picked out. The least common multiple is shown too. Rounding Calculator Rounds a number to a chosen place value (thousands, tens, a whole number, tenths, hundredths and so on), to a number of significant figures, or to the nearest fraction such as a quarter or a sixteenth. Ten rounding rules are available, from everyday half up and banker's rounding (half to even) to ceiling, floor and truncation, and a comparison table shows what each rule gives for your number. Arithmetic is exact, so 2.675 rounds to 2.68, not 2.67 as some software gives.