Rounding Calculator

Rounding method

Round to decimal places or a positive multiple. Negative decimal places round tens, hundreds and so on. Exact halfway values round away from zero: −1.005 to two places becomes −1.01.

Results

Enter your values and select Calculate.

y=h round⁡(x/h)y=h\,\operatorname{round}(x/h)

About this tool

The rounding calculator rounds a number to a chosen number of decimal places or to the nearest multiple of any positive step, such as 0.05 or 25. People use it for prices, measurements, cash rounding, and homework. Rounding replaces a number with the closest value on a chosen grid; when a value sits exactly halfway, this tool rounds away from zero, so 2.5 becomes 3 and −2.5 becomes −3.

How it works

Type the number to round, choose decimal places or nearest multiple, and set the precision. For decimal places, 2 rounds to hundredths, 0 to whole numbers and −2 to the nearest hundred. For a multiple, enter a positive step such as 0.05, 0.25, 5 or 1/8; fractions are accepted.

The value is read as an exact decimal rather than a binary floating-point number, so a halfway case such as 2.675 to two places reliably becomes 2.68. The calculator counts how many steps fit into the value, rounds that count to a whole number with halves going away from zero, and multiplies back by the step.

y=h round⁡(x/h)y=h\,\operatorname{round}(x/h)

Example

The default value is 1.005, rounded to 2 decimal places. The candidates are 1.00 and 1.01, and 1.005 is exactly halfway between them, so the halfway rule rounds away from zero and the result is 1.01. The tool reads the input as an exact decimal, which matters here: some software, such as JavaScript's toFixed, returns 1.00 because 1.005 is stored in binary as slightly less than 1.005. Rounding the same value to the nearest multiple of 0.05 gives 0.05×round⁡(20.1)=10.05\times\operatorname{round}(20.1)=1.

Assumptions and limits

Decimal places range from −12 to 12, and negative places round to tens, hundreds, and so on. The multiple must be positive. Only the round-half-away-from-zero rule is used; the tool does not offer banker's rounding, always-up or always-down rounding, or significant figures.

Frequently asked questions

How do you round to two decimal places?

Look at the third decimal digit. If it is 5 or more, increase the second digit by one; otherwise leave it, then drop the remaining digits. For example, 3.14159 becomes 3.14. For 2.675 the third digit is 5, so the result is 2.68. Round once from the original value rather than in stages, because rounding an already rounded number can shift the result.

What is round half away from zero?

It is the common school rule: a value exactly halfway between two candidates moves to the one farther from zero. So 0.5 rounds to 1 and −0.5 rounds to −1. Values that are not exactly halfway simply go to the nearer candidate, so 2.49 rounds to 2 and 2.51 to 3.

What is banker's rounding?

Banker's rounding, or round half to even, sends exact halfway values to the nearest even digit, so 2.5 becomes 2 and 3.5 becomes 4. It reduces bias when many values are summed. This calculator does not use it. Some spreadsheet and programming functions use it by default, so their results can differ from this tool on exact halves.

How do I round to the nearest 0.05 or nearest 5?

Choose the nearest multiple method and enter 0.05 or 5. The value is divided by the step, rounded to a whole number, and multiplied back. For example, 7.32 to the nearest 0.05 is 7.30, and 7.33 is 7.35. To the nearest 5, 112.5 becomes 115 because it is an exact halfway value.

What do negative decimal places do?

They round to the left of the decimal point. With −1 places, 1234.5 rounds to 1230; with −2 places it rounds to 1200; with −3 places it rounds to 1000. A value exactly on the halfway point, such as 1250 at −2 places, rounds away from zero to 1300.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
valueValuefraction or decimal: 3/4, 1 1/2 or 0.75required
modeRounding methodone of: places, multipledefault places
placesDecimal places (-12 to 12)whole number; allowed -12–12; used with mode = placesrequired
multipleRound to a multiple offraction or decimal: 3/4, 1 1/2 or 0.75; used with mode = multiplerequired

Examples

  • ?value=2.675&places=2
  • ?value=7.3&multiple=0.25
  • ?value=1234.5&places=-2

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="rounding_calculator"]