Round to the Nearest Cent
Commas, spaces and currency symbols are ignored. Negatives work too.
Zoom Into the Cent
The exact value sits somewhere between two cents. Shaded zones show where each side wins.
Digit by Digit
Every Method, Side by Side
Same amount, six rules. Tap a row to switch.
Counted Out in Coins
The rounded amount, paid with the fewest coins.
Round a Whole List
Paste one amount per line. See how small adjustments add up across a bill, ledger or invoice.
| # | Exact | Rounded | Adjustment |
|---|
How Round to the Nearest Cent Calculator Works?
The Round to the Nearest Cent calculator reads the exact digits of an amount, keeps 2 decimal places and applies 1 of 6 rounding rules. The calculator runs in the browser and never turns the amount into a binary floating-point number, so $2.675 stays $2.675 and rounds to $2.68.
- 1Read
$1,234.5678text, not a float - 2Split
1234.5678cents | remainder - 3Compare
0.0078 > 0.005remainder vs half a cent - 4Apply rule
half up → +1¢1 of 6 rules - 5Result
$1,234.57+ 5 visual checks
5 Steps Inside the Calculator
- Reads the amount as text and strips commas, spaces and currency symbols ($, €, £).
- Splits the amount into the whole cents (1234.56) and the remainder (0.0078).
- Compares the remainder with half a cent (0.005 dollars).
- Applies the selected rule: half up adds 1 cent, so $1,234.5678 becomes $1,234.57.
- Shows the result in 5 views: a number line, digit tiles, a method comparison, a coin count and a batch list.
6 Rounding Rules in the Calculator
| Rule | Other name | $0.125 | −$3.145 | Typical use |
|---|---|---|---|---|
| Half up | round half away from zero | $0.13 | −$3.15 | Receipts, invoices, school math |
| Half even | banker's rounding | $0.12 | −$3.14 | Accounting totals, bank interest |
| Half down | round half toward zero | $0.12 | −$3.14 | Rare; some discount rules |
| Round up | ceiling | $0.13 | −$3.14 | Fees and taxes that must not fall short |
| Round down | floor | $0.12 | −$3.15 | Payouts and credit limits |
| Truncate | round toward zero | $0.12 | −$3.14 | Chopping extra digits in code |
The calculator uses exact integer math on the typed digits. Excel, Python and JavaScript store most decimals in the Institute of Electrical and Electronics Engineers (IEEE) 754 binary format, which turns 2.675 into 2.67499999… and causes 1-cent errors. Try an amount in the calculator.
Round to the Nearest Cent Formula
The round to the nearest cent formula is Rounded = ⌊x × 100 + 0.5⌋ ÷ 100, where x is a positive amount in dollars and ⌊ ⌋ means floor (round down to a whole number).
- Start
x = 12.3456 - × 100
1234.56amount in cents - + 0.5
1235.06shift by half a cent - floor
1235drop the fraction - ÷ 100
$12.35back to dollars
Formula for Each Rounding Rule
| Rule | Math formula | Excel / Google Sheets |
|---|---|---|
| Half up | sign(x) × ⌊|x| × 100 + 0.5⌋ ÷ 100 | =ROUND(A1, 2) |
| Round up | ⌈x × 100⌉ ÷ 100 | =CEILING.MATH(A1, 0.01) |
| Round down | ⌊x × 100⌋ ÷ 100 | =FLOOR.MATH(A1, 0.01) |
| Truncate | trunc(x × 100) ÷ 100 | =TRUNC(A1, 2) |
| Half even | tie → even cent | VBA Round(x, 2) |
Formula for Negative Amounts
Apply the formula to the absolute value and put the minus sign back for half-up rounding: −12.3456 → 12.3456 → 12.35 → −12.35. The plain formula ⌊x × 100 + 0.5⌋ ÷ 100 gives −12.34 on −12.345, which rounds a tie toward zero instead of away from zero.
Formula and Floating-Point Error
Floating-point arithmetic breaks the formula on some amounts. The double value of 1.005 is 1.00499999999999989…, so 1.005 × 100 gives 100.49999999999999 and the formula returns 1.00 instead of 1.01. Store money as whole cents (an integer, 101 for $1.01) or as a decimal type to get the exact cent.
Round to the Nearest Cent Chart
A round to the nearest cent chart shows that a thousandths digit of 0–4 keeps the cents and a thousandths digit of 5–9 adds 1 cent. The chart below uses $4.370 to $4.379.
Rounding Chart for 12 Amounts and 5 Rules
| Amount | Half up | Banker's | Round up | Round down | Truncate |
|---|---|---|---|---|---|
| $0.125 | $0.13 | $0.12 | $0.13 | $0.12 | $0.12 |
| $0.135 | $0.14 | $0.14 | $0.14 | $0.13 | $0.13 |
| $1.005 | $1.01 | $1.00 | $1.01 | $1.00 | $1.00 |
| $2.675 | $2.68 | $2.68 | $2.68 | $2.67 | $2.67 |
| $2.683 | $2.68 | $2.68 | $2.69 | $2.68 | $2.68 |
| $4.4449 | $4.44 | $4.44 | $4.45 | $4.44 | $4.44 |
| $7.995 | $8.00 | $8.00 | $8.00 | $7.99 | $7.99 |
| $12.3456 | $12.35 | $12.35 | $12.35 | $12.34 | $12.34 |
| $19.9951 | $20.00 | $20.00 | $20.00 | $19.99 | $19.99 |
| $21.277 | $21.28 | $21.28 | $21.28 | $21.27 | $21.27 |
| $598.615 | $598.62 | $598.62 | $598.62 | $598.61 | $598.61 |
| −$3.145 | −$3.15 | −$3.14 | −$3.14 | −$3.15 | −$3.14 |
Green cells rounded up, purple cells rounded down. Columns differ only on ties (exactly half a cent) and on round-up, round-down and truncate rules.
What Does Round to the Nearest Cent Mean?
Round to the nearest cent means changing an amount to the closest multiple of $0.01, which leaves exactly 2 digits after the decimal point. One cent (1¢) is 1/100 of a United States dollar (USD), and the same rule applies to the euro cent (€0.01) and the British penny (£0.01).
“Round to the nearest penny”, “round off to the nearest cent”, “round to 2 decimal places” and “round to the nearest hundredth” all mean the same operation on a dollar amount.
4 Common Uses of Rounding to the Nearest Cent
- Sales tax on receipts: 8.25% of $19.99 is $1.649175, charged as $1.65.
- Interest on loans and savings: $1,250 × 4.5% × 0.75 years is $42.1875, paid as $42.19.
- Unit prices on shelf labels: $4.29 for 12 oz (340 g) is $0.3575 per oz, shown as $0.36.
- Currency conversion: €50 at 1.0837 USD per EUR is $54.185, paid as $54.19.
How Do You Round to the Nearest Cent?
To round to the nearest cent, look at the thousandths digit (the third digit after the decimal point): add 1 cent when the digit is 5 or more, and keep the cents when the digit is 4 or less.
4 Steps to Round to the Nearest Cent
- Find the cents digit, the second digit after the decimal point (8 in $7.4862).
- Look at the next digit, the thousandths digit (6 in $7.4862).
- Add 1 cent, if the thousandths digit is 5 or more (8 cents → 9 cents).
- Drop every digit after the cents digit: $7.4862 → $7.49.
Rounding With a Carry
A 9 in the cents place carries into the dimes and dollars: $19.996 becomes $20.00, and $0.995 becomes $1.00. Write the 2 trailing zeros to show the amount is in cents.
Rounding Negative Amounts
Round the digits the same way and keep the minus sign: −$7.4862 becomes −$7.49. A refund of −$3.145 becomes −$3.15 with half-up rounding.
Round to the Nearest Cent Example
$7.4862 rounded to the nearest cent is $7.49, and $2.683 rounded to the nearest cent is $2.68. The receipt and the table below show 11 more examples.
RECEIPT
Headphones$19.99
Sales tax 8.25%$1.649175 $1.65
Total$21.64
Tax rounded to the nearest cent
8 Worked Examples
| Amount | Thousandths digit | Nearest cent | Reason |
|---|---|---|---|
| $2.683 | 3 | $2.68 | 3 is below 5: keep the cents |
| $21.277 | 7 | $21.28 | 7 is 5 or more: add 1 cent |
| $598.615 | 5 | $598.62 | 5 is 5 or more: add 1 cent |
| $1.005 | 5 | $1.01 | 5 is 5 or more: add 1 cent |
| $0.125 | 5 | $0.13 | 5 is 5 or more: add 1 cent |
| $19.9951 | 5 | $20.00 | 5 is 5 or more: add 1 cent |
| $4.10 | 0 | $4.10 | No digits after the cents |
| −$3.145 | 5 | −$3.15 | 5 is 5 or more: add 1 cent |
3 Real-Life Examples
- Bill split: $100 ÷ 3 = $33.333…, so each person pays $33.33. Three payments of $33.33 total $99.99, and 1 cent stays unpaid.
- Unit price: $4.29 ÷ 12 oz = $0.3575 per oz, rounded to $0.36 per oz (about $1.26 per 100 g). Unit price calculator.
- Cash total: $7.87 rounds to $7.85 in countries that round cash to 5 cents, such as Canada. 5 cents calculator.
How to Round to the Nearest Cent in Excel?
To round to the nearest cent in Excel, use =ROUND(A1, 2), where A1 holds the amount and 2 is the number of decimal places. Microsoft Excel rounds a half cent away from zero, so =ROUND(0.125, 2) returns 0.13.
| Formula | A2 = 12.3456 | A2 = −12.3456 | Direction | |
|---|---|---|---|---|
| 2 | =ROUND(A2, 2) | 12.35 | −12.35 | Nearest cent, ties away from zero |
| 3 | =ROUNDUP(A2, 2) | 12.35 | −12.35 | Away from zero |
| 4 | =ROUNDDOWN(A2, 2) | 12.34 | −12.34 | Toward zero |
| 5 | =TRUNC(A2, 2) | 12.34 | −12.34 | Drops extra digits |
| 6 | =CEILING.MATH(A2, 0.01) | 12.35 | −12.34 | Toward +∞ |
| 7 | =FLOOR.MATH(A2, 0.01) | 12.34 | −12.35 | Toward −∞ |
| 8 | =MROUND(A2, 0.05) | 12.35 | #NUM! | Nearest 5¢; signs must match |
4 Rules for Cents in Excel
- Format Cells → Number → 2 decimal places changes the display only. The cell keeps 12.3456.
- Set precision as displayed (File → Options → Advanced) overwrites stored values with the displayed values for the whole workbook.
- VBA Round() in Visual Basic for Applications (VBA) uses banker's rounding: Round(0.125, 2) returns 0.12.
- Line-by-line rounding keeps invoices consistent: round each line with =ROUND(B2*C2, 2), then add the lines with =SUM().
Round a Whole Column in Excel
Type =ROUND(A2, 2) in B2 and double-click the fill handle to copy the formula down. Excel for Microsoft 365 spills a range in one formula: =ROUND(A2:A100, 2). Round to 5, 25 or 50 cents with =MROUND(A2, 0.05), =MROUND(A2, 0.25) or =MROUND(A2, 0.5).
Round to Nearest Cent Google Sheets
To round to the nearest cent in Google Sheets, use =ROUND(A2, 2). Google Sheets rounds a half cent away from zero, the same rule as Excel.
| A · Amount | B · Rounded | |
|---|---|---|
| 2 | 2.683 | 2.68 |
| 3 | 21.277 | 21.28 |
| 4 | 0.125 | 0.13 |
| 5 | 19.9951 | 20.00 |
| 6 | 7.4862 | 7.49 |
5 Google Sheets Functions That Round to the Cent
=ROUND(A2, 2)rounds to the nearest cent.=ROUNDUP(A2, 2)rounds away from zero.=ROUNDDOWN(A2, 2)rounds toward zero.=MROUND(A2, 0.05)rounds to the nearest 5 cents.=TRUNC(A2, 2)drops digits after the cents.
Currency Format Is Not Rounding
Format → Number → Currency shows 2 decimals and keeps the full value. =A2*3 on a cell holding 2.683 returns 8.049, not 8.04. Wrap the value in =ROUND() before multiplying to work with whole cents.
Round to the Nearest Cent as Needed
“Round to the nearest cent as needed” means: round the final answer to 2 decimal places, if the exact answer has more than 2 decimal places. The phrase appears in online math homework systems such as Pearson MyLab Math (MyMathLab).
3 Rules for “As Needed” Answers
- Round only the final answer, and keep every digit in the middle steps.
- Enter exact answers unchanged: $60 stays $60 (or $60.00).
- Write money with 2 decimals: $18.50, not $18.5.
Example: Simple Interest
$1,250 at 4.5% simple interest for 9 months (0.75 years) earns $1,250 × 0.045 × 0.75 = $42.1875. The exact answer has 4 decimal places, so the answer to enter is $42.19. $1,200 at 5% for 1 year earns exactly $60, so the answer is $60. The same phrase works for other places: “round to the nearest tenth as needed” means 1 decimal place, done with the tenth calculator.
Round to the Nearest Cent Java
To round to the nearest cent in Java, use new BigDecimal("1.005").setScale(2, RoundingMode.HALF_UP). The BigDecimal class stores decimal digits exactly, so $1.005 rounds to $1.01.
import java.math.BigDecimal;
import java.math.RoundingMode;
public class Cents {
public static void main(String[] args) {
BigDecimal amount = new BigDecimal("1.005");
BigDecimal cents = amount.setScale(2, RoundingMode.HALF_UP);
System.out.println(cents); // 1.01
}
}5 Java Approaches Compared
| Java code | 1.005 | 2.675 |
|---|---|---|
| Math.round(x * 100) / 100.0 | 1.0 ✗ | 2.68 ✓ |
| new BigDecimal(x).setScale(2, RoundingMode.HALF_UP) | 1.00 ✗ | 2.67 ✗ |
| BigDecimal.valueOf(x).setScale(2, RoundingMode.HALF_UP) | 1.01 ✓ | 2.68 ✓ |
| new BigDecimal(text).setScale(2, RoundingMode.HALF_UP) | 1.01 ✓ | 2.68 ✓ |
| new BigDecimal(text).setScale(2, RoundingMode.HALF_EVEN) | 1.00 ✓ | 2.68 ✓ |
HALF_EVEN is banker's rounding: 1.005 → 1.00 is the intended result for that mode.
8 RoundingMode Values in Java
java.math.RoundingMode has 8 values: HALF_UP (nearest cent, ties away from zero), HALF_EVEN (banker's rounding), HALF_DOWN, UP (away from zero), DOWN (toward zero), CEILING, FLOOR and UNNECESSARY (throws an ArithmeticException when rounding is needed).
Rounding a Double in Java
Convert a double with BigDecimal.valueOf(price), not new BigDecimal(price). BigDecimal.valueOf() reads the shortest decimal text of the double ("1.005"), and new BigDecimal(1.005) reads the binary value 1.00499999999999989….
Same Task in 3 Other Languages
| Language | Code | 2.675 → |
|---|---|---|
| Python | round(2.675, 2) | 2.67 ✗ |
| Python | Decimal("2.675").quantize(Decimal("0.01"), ROUND_HALF_UP) | 2.68 ✓ |
| JavaScript | (2.675).toFixed(2) | "2.67" ✗ |
| C# | Math.Round(2.675m, 2, MidpointRounding.AwayFromZero) | 2.68 ✓ |
More Rounding Calculators
Every tool works on the exact digits you type and shows how it got the answer.
- DecimalsRound to the Nearest Tenth CalculatorRounds numbers and fractions to one decimal place, shown on a tenths ruler with steps.Open calculator
- DecimalsRound to the Nearest Hundredth CalculatorRounds to two decimal places, shown on a 10×10 hundredths grid with steps.Open calculator
- CashRound to the Nearest 5 Cents CalculatorCash rounding to the nearest nickel, with a last-digit map.Open calculator
- CashRound to the Nearest 25 CentsRounds amounts to the nearest quarter on a dollar dial.Open calculator
- CashRound to the Nearest 50 CentsRounds amounts to the nearest half dollar on a three-zone bar.Open calculator
- Round upRound Up to the Nearest CentAlways rounds amounts up to the next cent, shown as a ceiling staircase.Open calculator
- Round upRound Up to the Nearest TenthAlways rounds up to one decimal place, shown as a measuring tube.Open calculator
- Round upRound Up to the Nearest HundredthAlways rounds up to two decimal places, shown on odometer digit wheels.Open calculator
- PercentRound to the Nearest Tenth of a Percent CalculatorRounds percentages, decimals and fractions to one decimal place in percent.Open calculator
- PercentRound to the Nearest Hundredth of a PercentRounds rates to two decimal places in percent, with basis points.Open calculator
- ShoppingUnit Price Rounded to the Nearest CentDivides a price by quantity and rounds the unit price to the cent.Open calculator
Frequently Asked Questions
How to round to the nearest cent?
To round to the nearest cent, look at the thousandths digit (the third digit after the decimal point): add 1 cent when the digit is 5 or more, and keep the cents when the digit is 4 or less. $7.4862 becomes $7.49, and $2.683 becomes $2.68. Every digit after the cents is dropped.
How do you round to the nearest hundred?
To round to the nearest hundred, look at the tens digit: round up to the next hundred when the tens digit is 5 or more, and round down when the tens digit is 4 or less. 1,250 becomes 1,300, and $1,249.99 becomes $1,200. The nearest hundred (100) differs from the nearest hundredth (0.01): $1,234.567 rounds to $1,200 to the nearest hundred and to $1,234.57 to the nearest hundredth.
What is 25% of $13.65 rounded to the nearest cent?
25% of $13.65 rounded to the nearest cent is $3.41. 25% × $13.65 = 0.25 × 13.65 = $3.4125, and the thousandths digit 2 is below 5, so the cents stay at 41.
What is 0.372 rounded to the nearest hundredth?
0.372 rounded to the nearest hundredth is 0.37. The thousandths digit 2 is below 5, so the hundredths digit 7 stays the same. As money, $0.372 is $0.37 (37 cents).