PufferKit
HomeUtilitiesModulo Calculator
Default
India11
East Asia3
Other Countries3
Buy me a coffee

Modulo Calculator

Modulo vs. remainder, and the integer quotient.

Inputs

Results

a mod b (Euclidean)3
Remainder (a % b)-2
Integer quotient-4
-17 mod 5 = 3
Runs in this browser · nothing uploaded

Everything runs locally in this browser tab. Nothing is uploaded.

How to use Modulo Calculator

  1. Enter Dividend (a) and non-zero Divisor (b).

  2. Compare Euclidean modulo (a mod b), signed JS remainder (a % b), and floored integer quotient.

  3. Copy the modulo result.

Frequently asked questions

Why does −17 mod 5 give 3 instead of −2?

Signed remainder in C/JS (% operator) keeps the sign of −17 (−2), while Euclidean modulo returns the canonical remainder 3 with floor quotient −4.

A LITTLE SUPPORT GOES A LONG WAY

Enjoying PufferKit?

If these tools made your day a little easier, you can buy me a coffee and support what I’m building.

Support
With or without a coffee, you’re always welcome here.

Processing locally

File and data operations run locally inside this browser tab. Static assets such as fonts and qpdf.wasm load from this site origin, while PufferKit never uploads your files or tracks usage. HTTP client tools send requests to endpoints you choose. Preferences and saved drafts stay in this browser’s storage until you clear them.

How it works →

Find a tool

Compress Image to KBImagesImage ConverterImagesImage ResizerImagesImage CropperImagesImage RotatorImagesImage DimensionsImagesImage ViewerImagesImage FlipperImagesImage MetadataImages · SecurityRemove MetadataImages · SecurityImage OptimizerImagesImage to Base64Images · DeveloperSVG to PNGImages · DesignJPG to PNGImagesPNG to JPGImagesJPG to WebPImagesPNG to WebPImagesWebP to JPGImagesWebP to PNGImagesAVIF to JPGImagesAVIF to PNGImagesBMP to PNGImagesImage FiltersImagesImage EffectsImagesPixelate ImageImagesBlur ImageImagesSharpen ImageImagesAdjust BrightnessImagesAdjust ContrastImagesAdjust SaturationImages