Calculator Hero

Remainder Calculator

Calculates the remainder, quotient, and full division equation for any two numbers.

Last updated: June 11, 2026

Remainder Calculator

The number being divided

The number to divide by

Enter a dividend and a non-zero divisor to find the remainder

How to Use the Remainder Calculator

This remainder calculator finds the remainder, quotient, and full division equation for any two numbers — enter the dividend (the number being divided) and the divisor (the number to divide by) and it instantly returns the remainder, quotient, full decimal result, and the complete division equation in the form a = b × q + r. Negative numbers are fully supported. Division by zero shows a clear error message.

Use the Share button to copy a link with your inputs pre-filled. For converting division results to decimals and fractions, see our decimal calculator.

The Remainder Formula

The division algorithm guarantees that for any integers a and b (with b ≠ 0), there exist unique integers q (quotient) and r (remainder) such that:

a = b × q + r, where 0 ≤ r < |b|

To find q and r:

  • Quotient (q) = floor(a / b) — the largest integer not exceeding a / b
  • Remainder (r) = a − b × q

Example: a = 29, b = 6 → q = floor(29/6) = 4, r = 29 − 6 × 4 = 5. Division equation: 29 = 6 × 4 + 5.

AdvertisementResponsive Ad

Modulo in Programming

In programming, the modulo operator (written as % in most languages) returns the remainder of division. It is one of the most-used operators in software development:

  • Even/odd check: n % 2 === 0 is true when n is even
  • Circular indexing: (i + 1) % length wraps around to 0 after the last element
  • Clock arithmetic: total_minutes % 60 gives the remaining minutes after whole hours
  • Grouping into buckets: id % numBuckets assigns items to groups evenly
  • Cryptography: modular exponentiation powers RSA encryption

Note that JavaScript's % operator uses truncated division for negative numbers, while Python uses floored division. For most practical purposes with positive numbers, the difference does not matter.

Remainder vs. Decimal Division

When you divide 17 by 5, you can express the result two ways:

  • With remainder: 17 = 5 × 3 + 2 (quotient 3, remainder 2)
  • As a decimal: 17 / 5 = 3.40

Both are correct — they just express the same information differently. The decimal form (3.40) embeds the remainder as a fractional part: 2/5 = 0.40. Integer (whole-number) contexts require the remainder form — for example, if you have 17 apples to distribute equally to 5 people, each person gets 3 apples and there are 2 left over, which you cannot split further without cutting the apples.

Step-by-Step Example

Problem: Find the quotient and remainder when dividing 43 by 7.

  1. Divide: 43 / 7 = 6.142...
  2. Quotient = floor(43 / 7) = 6
  3. Product = 7 × 6 = 42
  4. Remainder = 43 − 42 = 1
  5. Division equation: 43 = 7 × 6 + 1

Verification: 7 × 6 + 1 = 42 + 1 = 43 ✓. The remainder (1) is less than the divisor (7) ✓.

AdvertisementResponsive Ad

Divisibility Rules and Remainders

Divisibility rules let you quickly determine the remainder from division by small numbers without actually dividing:

  • Divisible by 2: last digit is even → remainder = 0
  • Divisible by 3: sum of digits divisible by 3 → remainder = 0
  • Divisible by 5: last digit is 0 or 5 → remainder = 0
  • Divisible by 9: sum of digits divisible by 9 → remainder = 0
  • Divisible by 10: last digit is 0 → remainder = 0

These rules are special cases of modular arithmetic. For example, the rule for divisibility by 9 works because 10 ≡ 1 (mod 9), so 10ⁿ ≡ 1 (mod 9) for any n — meaning each digit contributes its face value to the remainder when dividing by 9. For proportion and ratio problems, our proportion calculator can help you work with ratios and scaling.

Sources & References

  1. Division and RemaindersKhan Academy
  2. Modular ArithmeticMath Is Fun

Frequently Asked Questions

Related Calculators

Advertisement

320 × 50 — Mobile Anchor