Modulo and remainder calculator

Uses a non-negative Euclidean remainder with a positive divisor, including negative dividends.

Your numbers

Use the input units shown. Results update as you enter valid values.

Euclidean remainder2
Floor quotient3

Your calculation, explained

Formula and assumptions

For a positive divisor d, quotient = floor(dividend/d). Remainder = dividend − quotient × d, so 0 ≤ remainder < d.

Uses a non-negative Euclidean remainder with a positive divisor, including negative dividends.

Algebra background: OpenStax ↗

Examples worth trying

Positive dividend

Euclidean remainder: 2; Floor quotient: 3.

Negative dividend

Euclidean remainder: 3; Floor quotient: -4.

Exact division

Euclidean remainder: 0; Floor quotient: 4.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.