Rounding Calculator
Round any number to a set number of decimal places, or to the nearest multiple such as 5, 10, or 0.25. Switch between five rules, from everyday half up to bankers rounding, ceiling, floor, and truncation. Negative numbers are handled with their sign, and the result copies with one click.
How to round a number
- Type the number to round in the Number box, for example 2.567.
- Pick a Rounding mode: Half up, Bankers, Ceiling, Floor, or Truncate.
- Choose Decimal places or Nearest multiple with the radio buttons.
- Enter the number of places, or the multiple such as 10 or 0.25.
- Read the highlighted Result and press Copy to grab it.
Examples
Round to 2 decimal places (half up)
2.567, 2 places, half up
2.57
Bankers rounding of a tie
2.5, 0 places, bankers
2
Round to the nearest 10
47, nearest 10, half up
50
Frequently asked questions
What is the default rounding mode?
The default is half up, which rounds a tie of exactly one half away from zero. So 2.5 rounds to 3 and -2.5 rounds to -3. It matches how most people round by hand.
What is bankers rounding?
Bankers rounding, also called round half to even, sends a tie to the nearest even integer. So 2.5 rounds to 2 and 3.5 rounds to 4. Spreading ties up and down like this reduces the upward bias you get when you always round halves away from zero.
How do ceiling, floor, and truncation differ?
Ceiling always rounds toward positive infinity, floor always rounds toward negative infinity, and truncation simply drops the extra digits toward zero. For -2.7 they give -2, -3, and -2 respectively, so the sign of the number changes which of the three agree.
How do I round to the nearest 5 or 0.25?
Select Nearest multiple and enter the step. The calculator divides the value by that multiple, rounds with your chosen mode, then multiplies back. That is why 47 to the nearest 10 is 50 and works the same for 0.25 or any positive step.
Does it round negative numbers correctly?
Yes. Each mode respects the sign of the value. Half up sends -2.5 to -3, floor of -2.7 is -3, ceiling of -2.7 is -2, and truncation of -2.7 is -2.
Can the decimal places be negative or a fraction?
Decimal places must be a whole number, and it can be negative to round to tens, hundreds, and beyond. A non-integer value in that field is rejected with a message. To round to a step like 25 or 0.5, use the Nearest multiple option instead.
How does it avoid floating point errors?
Scaling a number by a power of ten can introduce tiny binary noise, such as 1.005 becoming 1.00499999. The engine cleans each intermediate value to 15 significant digits before rounding, which removes that fuzz so ties land where you expect.
Is my input private, and is there an API?
The calculator runs entirely in your browser, so the numbers you type are never uploaded. This tool also exposes a JSON API that accepts value, decimalPlaces or nearest, and mode for use in scripts.
What happens with very large or invalid numbers?
Any finite number works, including large or very small values. Text that is not a number, or an infinite value, is rejected with a short error rather than a wrong answer.
Learn more
- Rounding modes explained
Half up, bankers, ceiling, floor, and truncation compared, with worked ties and the sign rules that trip people up on negatives.
Related tools
Significant Figures Calculator
Count significant figures in a number and round to any number of sig figs. Handles leading and trailing zeros with a clear rounding result. Free.
Scientific Notation Calculator
Convert numbers to and from scientific notation and E notation. Get the mantissa, exponent, and standard form, with negatives and zero handled.
Modulo Calculator
Compute the modulo, remainder, and quotient of any two numbers, including negatives. See how the % operator and floored modulo differ. Free tool.
Annulus Area Calculator
Calculate the area of an annulus, the ring between two concentric circles, from its outer and inner radius. Returns both circumferences and width too. Free.
Area Calculator
Find the area of a circle, square, rectangle, triangle, trapezoid, parallelogram, ellipse, sector or rhombus. Free and runs in your browser.
Arithmetic Sequence Calculator
Find the nth term, the sum of n terms and the full term list for any arithmetic or geometric sequence. Enter the first term, step or ratio, and n.