Money is counted in cents, but calculations produce more decimal places: a price split three ways, a percentage of an amount, a currency conversion. Eventually the amount has to be rounded to a whole number of cents, and the way you do it matters for accounting, tax and fairness. This calculator rounds any amount to the nearest cent, nickel, dime, quarter or dollar, with the common rounding rules: half up, half to even (banker’s rounding), ceiling, floor and truncation.
How to use the round to the nearest cent calculator
- Type the amount, with as many decimal places as you like.
- Choose the step to round to: a cent, a nickel, a dime, a quarter, a dollar or more.
- Choose the rounding method. “Round half up” is the usual rule.
- Read the rounded amount, the difference from the original, and the steps on either side.
Rounding formula and rules
Round half to even: exact halves go to the nearest even last digit
Ceiling rounds toward +∞, floor toward −∞, truncation drops the extra digits
Rounding to a step s: round(amount ÷ s) × s
Rounding to the nearest nickel divides the amount by 0.05, rounds to a whole number and multiplies back. The calculator does the arithmetic on the exact digits you type, using integer arithmetic, so there are no binary floating-point errors.
Worked examples
- $2.675 to the cent, half up: exactly halfway, so up to $2.68.
- $2.665 with banker’s rounding: the halfway case goes to the even cent, $2.66; and $2.675 goes to $2.68 (even again).
- $12.37 to the nearest nickel: 12.37 ÷ 0.05 = 247.4 → 247 → $12.35.
- $7.123456 with ceiling: any extra fraction rounds up to $7.13.
The same amounts under different rules
| Amount | To the cent, half up | Half to even | Truncated | Ceiling | To the nickel |
|---|---|---|---|---|---|
| 1.234 | 1.23 | 1.23 | 1.23 | 1.24 | 1.25 |
| 2.675 | 2.68 | 2.68 | 2.67 | 2.68 | 2.7 |
| 3.145 | 3.15 | 3.14 | 3.14 | 3.15 | 3.15 |
| 4.995 | 5.0 | 5.0 | 4.99 | 5.0 | 5.0 |
| 5.555 | 5.56 | 5.56 | 5.55 | 5.56 | 5.55 |
| 6.6666 | 6.67 | 6.67 | 6.66 | 6.67 | 6.65 |
| 9.9949 | 9.99 | 9.99 | 9.99 | 10.0 | 10.0 |
Which rule to use?
- Half up is the standard in school and everyday arithmetic, and the usual rule for tax and invoices.
- Banker’s rounding is the default in some programming languages and financial systems, because it avoids upward bias.
- Ceiling and floor are used when the direction matters, for example fees that must not be under-charged.
- Nickel rounding applies to cash transactions in countries that no longer use the one-cent coin.
Practical advice
Decide where to round and stick to it: each line item, or only the final total. Small differences can appear between the two methods, and tax authorities may specify the rule. Keep full precision during calculations and round only the final amount. For broader rounding, see the Rounding Calculator; to convert cents to dollars, use the Pennies to Dollars Calculator, and for percentages and tips see the Discount Calculator and Tip Calculator.
Frequently asked questions
How do you round to the nearest cent?
Look at the third decimal place. If it is 5 or more, round the cents up; if it is 4 or less, leave them. $2.678 rounds to $2.68 and $2.674 rounds to $2.67.
What is banker’s rounding?
Round half to even: when a value is exactly halfway between two cents, round to the nearest even cent digit. It reduces the bias that always rounding halves up produces in long columns of figures. 2.665 becomes 2.66 and 2.675 becomes 2.68.
Why do some calculators show 2.67 for 2.675?
Computers store most decimals in binary, so 2.675 is actually stored as 2.67499999… and rounds down. This calculator uses decimal arithmetic on the digits you type, so 2.675 rounds to 2.68 with the half-up rule.
What is cash rounding to the nearest nickel?
When a country removes its smallest coin, cash totals are rounded to the nearest 5 cents. Canada stopped distributing pennies in 2013, so cash purchases are rounded to the nearest 5 cents (1–2 cents down, 3–4 up to 5, 6–7 down, 8–9 up to 10), while card payments are exact.
Should I round every line or only the total?
It depends on the rules for your tax or invoice. Rounding each line item and rounding only the final total can differ by a few cents. Follow the method your accounting or tax authority specifies.