Modulo calculator

Calculate

Your result

Enter the details and calculate to see your result here.

Calculation basis

Enter two integers to get both nonnegative modulo and the truncating remainder, which follows the dividend’s sign. The Euclidean quotient q satisfies a = b × q + r.