Division with remainder

Calculate division with remainder and see the working behind your result.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
a = bq + r, 0 ≤ r < b

Variables & units

Number to divide
Numeric value · minimum 0, maximum 1000000
Divisor
Numeric value · minimum 1, maximum 1000000

Worked example

29 ÷ 6 gives quotient 4 and remainder 5.

Assumptions

The remainder must be smaller than the positive divisor.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Practice with an example

Use the default input values to find the answer. The reset icon restores those values.

Calculated on your device. Your latest 100 calculations stay in this browser.