What is the Quotient Calculator?
The quotient calculator divides one number (the dividend, a) by another (the divisor, b) and returns three results: the whole-number quotient, the remainder left over, and the exact decimal value of the division. It is a universal arithmetic tool useful for students, programmers, and anyone working with integer division.
How to Use It
Enter the dividend in the first box and the divisor in the second box, then read off the results. For example, dividing 17 by 5 gives a quotient of 3 with a remainder of 2, because 5 fits into 17 three full times (15) leaving 2 left over.
The Formula Explained
The quotient uses floor division: \( q = \lfloor a / b \rfloor \), which rounds down to the nearest whole number. The remainder is then found by \( r = a - b \cdot q \). This guarantees that \( a = b \cdot q + r \) always holds, the fundamental identity of the division algorithm.
$$\text{Quotient} = \left\lfloor \frac{\text{Dividend }(a)}{\text{Divisor }(b)} \right\rfloor, \qquad \text{Remainder} = a - b \cdot \text{Quotient}$$
Worked Example
Divide 17 by 5: \( \lfloor 17 / 5 \rfloor = \lfloor 3.4 \rfloor = 3 \), so the quotient is 3. The remainder is \( 17 - 5 \times 3 = 17 - 15 = 2 \). The exact result is 3.4.
$$\lfloor 17 / 5 \rfloor = \lfloor 3.4 \rfloor = 3, \qquad 17 - 5 \times 3 = 17 - 15 = 2$$
More Worked Examples
Each example uses the rule \(q = \lfloor a/b \rfloor\) and \(r = a - b\cdot q\), then checks the identity \(a = b\cdot q + r\).
Example 1: Divisor larger than the dividend (3 ÷ 8)
- Divide: \(3 / 8 = 0.375\).
- Take the floor: \(q = \lfloor 0.375 \rfloor = 0\).
- Remainder: \(r = 3 - 8\cdot 0 = 3\).
- Check: \(8\cdot 0 + 3 = 3\). ✓
Quotient: 0, remainder 3, decimal 0.375. When the divisor is larger than a positive dividend, the quotient is always 0 and the remainder is the dividend itself.
Example 2: Negative dividend (−17 ÷ 5)
- Divide: \(-17 / 5 = -3.4\).
- Take the floor (round toward negative infinity, not toward zero): \(q = \lfloor -3.4 \rfloor = -4\).
- Remainder: \(r = -17 - 5\cdot(-4) = -17 + 20 = 3\).
- Check: \(5\cdot(-4) + 3 = -20 + 3 = -17\). ✓
Quotient: -4, remainder 3. The remainder stays between 0 and 4, which is why the quotient is −4 rather than −3.
Example 3: Decimal dividend (7.5 ÷ 2)
- Divide: \(7.5 / 2 = 3.75\).
- Take the floor: \(q = \lfloor 3.75 \rfloor = 3\).
- Remainder: \(r = 7.5 - 2\cdot 3 = 7.5 - 6 = 1.5\).
- Check: \(2\cdot 3 + 1.5 = 7.5\). ✓
Quotient 3, remainder 1.5, decimal 3.75. The remainder is smaller than the divisor (1.5 < 2), as required.
Quotient and Remainder Across Different Inputs
| Dividend | Divisor | Quotient | Remainder | Exact Decimal |
|---|---|---|---|---|
| 17 | 5 | 3 | 2 | 3.4 |
| 20 | 5 | 4 | 0 | 4 (exact division) |
| 3 | 8 | 0 | 3 | 0.375 |
| −17 | 5 | −4 | 3 | −3.4 |
| 100 | 7 | 14 | 2 | 14.2857… (repeating) |
| 7.5 | 2 | 3 | 1.5 | 3.75 |
Note: A remainder of 0 means the divisor divides the dividend evenly, so the exact decimal is a whole number (as in 20 ÷ 5 = 4). Any nonzero remainder means the division leaves a fractional part.
Conventions and edge cases
Each case below was run through this calculator; the result column is what it actually returns.
| Case | Input | Result |
|---|---|---|
| Negative dividend | -17, 5 | -4 |
| Negative divisor | 17, -5 | -4 |
| Division by zero | 7, 0 | Division by 0 is not defined. Enter a divisor other than 0. |
Checked on 2026-11-08
FAQ
What happens with a negative dividend? Because we use floor division, \( -17 \div 5 \) gives a quotient of \( -4 \) (floor of \( -3.4 \)) and a remainder of 3, keeping the remainder non-negative.
What if the divisor is 0? Division by zero is undefined, so the calculator shows “not defined” instead of a number — enter a non-zero divisor.
Does it work with decimals? Yes. The quotient is still the floor of \( a/b \), and the remainder follows the same identity.