logo

Apka Apna Career Saathi

Best Career for Me AI Powered

Remainder Calculator

--

How this remainder calculator works

Enter a dividend and a divisor. The calculator returns Dividend % Divisor—the leftover after division. 17 % 5 = 2, because 5 × 3 + 2 = 17. 20 % 4 = 0, because 4 divides 20 exactly. The result uses toString(), so whole numbers print without forced decimal places.

The divisor must not be 0. Both fields must be finite numbers. If the non-negative dividend is smaller than the divisor, the remainder is the dividend: 7 % 17 = 7. Decimals work the same way: 10.5 % 3 = 1.5.

With negatives, the page follows JavaScript’s remainder rule: the sign of the result matches the dividend. −17 % 5 = −2. 17 % −5 = 2. That is not always the same as a school “positive remainder only” definition.

The remainder is not the quotient. For 25 and 6 the quotient is 4 and the remainder is 1. Check with Dividend = Divisor × Quotient + Remainder.

Remainder examples

Each row is Dividend % Divisor, matching the calculator display.

DividendDivisorRemainderWhat it marks
17525 × 3 + 2 = 17
2040Exact division
10072100 ÷ 7 leftover
1031Common example
25614 × 6 + 1
7177Dividend smaller
10.531.5Decimal inputs
-175-2Sign follows dividend

How to read the result

  • Dividend % Divisor

    17 % 5 = 2 leftover.

  • Zero remainder

    Exact division, as in 20 % 4 = 0.

  • Divisor ≠ 0

    Zero divisor leaves “--.”

  • Sign follows dividend

    −17 % 5 = −2 in this calculator.

Frequently asked questions

  • What does this remainder calculator find?

    The remainder when Dividend is divided by Divisor, using the % operator: Remainder = Dividend % Divisor. 17 ÷ 5 leaves remainder 2. 20 ÷ 4 leaves remainder 0. The result is shown with toString(), so trailing zeros are not forced.

  • What are dividend and divisor?

    The dividend is the number being divided. The divisor is the number you divide by. In 100 % 7, 100 is the dividend and 7 is the divisor, and the remainder is 2.

  • Why can the divisor not be zero?

    Division by zero is undefined. If the divisor is 0, or either field is empty or non-finite, the result stays as “--.”

  • What if the dividend is smaller than the divisor?

    The remainder is the dividend itself when both are non-negative and the dividend is smaller. 7 % 17 = 7, because 17 goes into 7 zero times.

  • What does a remainder of zero mean?

    The divisor divides the dividend exactly. 20 % 4 = 0. 10 % 5 would also be 0.

  • How do negative numbers work on this page?

    The result follows JavaScript’s remainder rule: the sign of the remainder matches the dividend. −17 % 5 = −2. 17 % −5 = 2. −17 % −5 = −2. That differs from some school “always positive remainder” conventions.

  • Can I enter decimals?

    Yes. 10.5 % 3 = 1.5. 5.5 % 2.5 = 0.5. Any finite numbers are accepted as long as the divisor is not 0.

  • Is this the same as the quotient?

    No. The quotient is how many times the divisor fits. The remainder is what is left. For 17 and 5 the quotient is 3 and the remainder is 2, because 5 × 3 + 2 = 17.

  • How do I check the answer by hand?

    For non-negative integers, divide and read the leftover. 25 ÷ 6 is 4 groups with 1 left, so 25 % 6 = 1. In general, Dividend = Divisor × Quotient + Remainder, with Remainder = Dividend % Divisor as on this page.

  • Why does 10% show as 1 not 1.0?

    The display uses toString() on the number. Whole remainders such as 1 or 0 print without forced decimals. 10 % 3 = 1.