Round to the Nearest Cent

Round to the Nearest Cent

Commas, spaces and currency symbols are ignored. Negatives work too.

Rounding method
Rounded to the nearest cent
$12.35
↑ Rounded up+$0.0044

Zoom Into the Cent

The exact value sits somewhere between two cents. Shaded zones show where each side wins.

Rounds to lowerRounds to higher
12.3456
$12.34
$12.35
½ cent
Position in cent56%
Distance to lower0.56¢
Distance to higher0.44¢

Digit by Digit

KeptDeciding digitDropped

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.

Adjustment per line (gridlines at ±½¢ and ±1¢)
#ExactRoundedAdjustment

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.

  1. 1Read$1,234.5678text, not a float
  2. 2Split1234.5678cents | remainder
  3. 3Compare0.0078 > 0.005remainder vs half a cent
  4. 4Apply rulehalf up → +1¢1 of 6 rules
  5. 5Result$1,234.57+ 5 visual checks
The 5 steps the calculator runs on every keystroke, shown for $1,234.5678.

5 Steps Inside the Calculator

  1. Reads the amount as text and strips commas, spaces and currency symbols ($, €, £).
  2. Splits the amount into the whole cents (1234.56) and the remainder (0.0078).
  3. Compares the remainder with half a cent (0.005 dollars).
  4. Applies the selected rule: half up adds 1 cent, so $1,234.5678 becomes $1,234.57.
  5. 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

Each rule on a half-cent tie ($0.125) and a negative tie (−$3.145)
RuleOther name$0.125−$3.145Typical use
Half upround half away from zero$0.13−$3.15Receipts, invoices, school math
Half evenbanker's rounding$0.12−$3.14Accounting totals, bank interest
Half downround half toward zero$0.12−$3.14Rare; some discount rules
Round upceiling$0.13−$3.14Fees and taxes that must not fall short
Round downfloor$0.12−$3.15Payouts and credit limits
Truncateround toward zero$0.12−$3.14Chopping 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).

Rounded = ⌊ x × 100 + 0.5 ⌋ ÷ 100
  1. Startx = 12.3456
  2. × 1001234.56amount in cents
  3. + 0.51235.06shift by half a cent
  4. floor1235drop the fraction
  5. ÷ 100$12.35back to dollars
The formula applied to $12.3456, one operation per row.

Formula for Each Rounding Rule

RuleMath formulaExcel / Google Sheets
Half upsign(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)
Truncatetrunc(x × 100) ÷ 100=TRUNC(A1, 2)
Half eventie → even centVBA 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.

0$4.370$4.37
1$4.371$4.37
2$4.372$4.37
3$4.373$4.37
4$4.374$4.37
5$4.375$4.38
6$4.376$4.38
7$4.377$4.38
8$4.378$4.38
9$4.379$4.38
0–4: keep $4.375–9: add 1¢ → $4.38
Thousandths digit (top) and the rounded amount (bottom) for every ending of $4.37_.

Rounding Chart for 12 Amounts and 5 Rules

AmountHalf upBanker'sRound upRound downTruncate
$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).

$4.376$4.37$4.38half cent ($4.375)0.6¢ away0.4¢ away → nearest
$4.376 is 0.4¢ from $4.38 and 0.6¢ from $4.37, so the nearest cent is $4.38.

“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.

7.4dimes8cents6decides2$7.49
$7.4862: keep 7.48, the deciding digit 6 adds 1 cent, the 2 is dropped.

4 Steps to Round to the Nearest Cent

  1. Find the cents digit, the second digit after the decimal point (8 in $7.4862).
  2. Look at the next digit, the thousandths digit (6 in $7.4862).
  3. Add 1 cent, if the thousandths digit is 5 or more (8 cents → 9 cents).
  4. 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.25% of $19.99 is $1.649175. The thousandths digit 9 rounds the tax up to $1.65.

8 Worked Examples

AmountThousandths digitNearest centReason
$2.6833$2.683 is below 5: keep the cents
$21.2777$21.287 is 5 or more: add 1 cent
$598.6155$598.625 is 5 or more: add 1 cent
$1.0055$1.015 is 5 or more: add 1 cent
$0.1255$0.135 is 5 or more: add 1 cent
$19.99515$20.005 is 5 or more: add 1 cent
$4.100$4.10No digits after the cents
−$3.1455−$3.155 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.

B2fx=ROUND(A2, 2)
FormulaA2 = 12.3456A2 = −12.3456Direction
2=ROUND(A2, 2)12.35−12.35Nearest cent, ties away from zero
3=ROUNDUP(A2, 2)12.35−12.35Away from zero
4=ROUNDDOWN(A2, 2)12.34−12.34Toward zero
5=TRUNC(A2, 2)12.34−12.34Drops extra digits
6=CEILING.MATH(A2, 0.01)12.35−12.34Toward +∞
7=FLOOR.MATH(A2, 0.01)12.34−12.35Toward −∞
8=MROUND(A2, 0.05)12.35#NUM!Nearest 5¢; signs must match
7 Excel functions on the same amount. ROUNDUP moves −12.3456 away from zero to −12.35; CEILING.MATH moves it toward +∞ to −12.34.

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.

B2fx=ARRAYFORMULA(IF(A2:A="", "", ROUND(A2:A, 2)))
A · AmountB · Rounded
22.6832.68
321.27721.28
40.1250.13
519.995120.00
67.48627.49
One ARRAYFORMULA in B2 rounds the whole column A and leaves empty rows blank.

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).

Exact final answerMore than 2decimal places?YesNoRound to 2 decimals42.1875 → 42.19Enter it as it is18.25 → 18.25
Round only when the exact answer needs it.

3 Rules for “As Needed” Answers

  1. Round only the final answer, and keep every digit in the middle steps.
  2. Enter exact answers unchanged: $60 stays $60 (or $60.00).
  3. 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.

Cents.java
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

Results for x = 1.005 and x = 2.675 (text = "1.005" and "2.675"); half up gives 1.01 and 2.68
Java code1.0052.675
Math.round(x * 100) / 100.01.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

LanguageCode2.675 →
Pythonround(2.675, 2)2.67 ✗
PythonDecimal("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.

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).