Long Division Calculator

Divide nonnegative whole numbers exactly and show each brought-down digit, quotient and remainder.

Integer quotient
102
Remainder
10
Digit-by-digit subtraction steps
1 − 0 × 12 = 1 12 − 1 × 12 = 0 3 − 0 × 12 = 3 34 − 2 × 12 = 10
Column calculation
—
Verification
—

Enter nonnegative values with up to 100 digits. Decimal mode accepts a dot or comma and 1–100 decimal places; the quotient is truncated and the exact remainder preserves the verification identity.

Approximate results show up to 12 significant digits. Decimal fields use a dot, up to 12 digits on each side, an exponent from −24 to 24 and absolute values up to 10¹². Rational intermediate numerators and denominators are limited to 512 bits. Integer and scientific-notation exceptions are specified below. a=bq+r; 0 ≤ r < b; a ∈ ℕ₀; b ∈ ℕ; 1–100 digits.

Calculation and assumptions

a=bq+r; 0≤r

Enter digits only, with no separators, sign, decimal or exponent; leading zeros are allowed. Each line shows the partial dividend after bringing down the next digit, minus its quotient digit times the divisor. Results are exact integers; a decimal expansion and signed division are not included.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

a=bq+r; 0≤r

What assumptions apply?

Enter digits only, with no separators, sign, decimal or exponent; leading zeros are allowed. Each line shows the partial dividend after bringing down the next digit, minus its quotient digit times the divisor. Results are exact integers; a decimal expansion and signed division are not included.

How precise are the results?

Quotient, remainder and subtraction steps use exact integer arithmetic for inputs of up to 100 digits. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 2 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Dividend (1–100 digits) = 5
Divisor (1–100 digits, not zero) = 12
Integer quotient: 0
Remainder: 5
2
Dividend (1–100 digits) = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007
Divisor (1–100 digits, not zero) = 7
Integer quotient: 142857142857142857142857142857142857142857142857142857142857142857142857142857142857142858
Remainder: 1

How we test our calculators →

Also try:

Back to category →