Home · Everyday · Rounding & Numbers · Floor Division Calculator

Floor Division Calculator

Divide and round the quotient down to a whole number, with the mathematical remainder and the exact quotient shown too.

Your figures

Example result — edit the figures to make it yours

3

Floor quotient ⌊a/b⌋

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Remainder (mathematical mod)2.0000
Exact quotient a/b3.4000

What this calculator does

Divide and round the quotient down to a whole number, with the mathematical remainder and the exact quotient shown too. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

a = b·⌊a/b⌋ + r, 0 ≤ r < b

Floor division answers how many complete groups of size b fit into a, discarding any partial group: the result is the exact quotient rounded down toward negative infinity. The remainder shown here is the mathematical mod, which always lies between 0 and b for a positive divisor, so a = b·q + r holds exactly.

This differs from the truncated division many calculators and programming languages show for negative numbers: floor(−17/5) is −4, not −3, and its remainder is +3 rather than −2. The divisor must not be zero.

Worked example

With the example inputs this page opens with (dividend a 17, divisor b 5), the result is 3 — floor quotient ⌊a/b⌋. Computed from the inputs on this page with the formula below — change any figure and every result updates.

Quick reference

Quick reference — varying Dividend a
Dividend aFloor quotient ⌊a/b⌋Remainder (mathematical mod)Exact quotient a/b
5101
10202
17323.4
20404
23434.6
40808
9919419.8

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why is floor division of −17 by 5 equal to −4?

Floor always rounds toward negative infinity, so −3.4 rounds down to −4. The remainder then adjusts to +3 so that 5 × (−4) + 3 = −17 stays exact.

How does the Floor Division Calculator work?

Divide and round the quotient down to a whole number, with the mathematical remainder and the exact quotient shown too. Dividend a · Divisor b → ⌊a ÷ b⌋. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Floor Division Calculator need?

Dividend a · Divisor b → ⌊a ÷ b⌋. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Floor Division Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.