JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Remainder Calculator

Calculate the signed integer remainder a % b.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Remainder. The example starts with Dividend = 17, Divisor = 5.

Remainder Calculator formula

Remainder = a − trunc(a/b)b.

Inputs and units

Inputs and example values for Remainder Calculator
InputFormat / rangeExample
DividendNumber17
DivisorNumber5

Worked example

The values listed in Inputs and units give 2 for Remainder.

Remainder
2

Results and assumptions

The worked example uses the units shown in its input table. Use those same units to reproduce it.

Fix an input or unexpected result

Dividend is required. Enter dividend using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.