Why does the discounted price in my store's cart differ from the calculator by one cent?

It is almost always when the rounding happens, not a wrong discount. The calculator works out the exact price and rounds it once to two decimals, while a store cart may round each unit before adding them up, or apply the discount after tax, and that moves the total by a cent.

Published · 3 min read

An example that shows the whole gap

A product at 33.35 with 15% off, and a customer buying three. There are two sensible ways to compute the order. Both are correct, and they do not give the same number.

Worked example

One unit: the exact discounted price is 28.3475, shown as 28.35.

If the cart rounds each unit and then adds: 3 × 28.35 = 85.05.

If the cart adds first and discounts the total: 3 × 33.35 = 100.05, and 15% off gives 85.0425, shown as 85.04.

The gap is one cent, and both figures come from correct rounding.

Tracking down the cause yourself

  1. Enter the unit price and the rate in the Discount calculator. It shows prices rounded to two decimals, so for the exact figure before rounding, multiply the price by what remains after the discount, such as 33.35 × 0.85.
  2. Multiply the displayed unit price by the quantity. If that matches the cart, the store rounds per unit.
  3. Enter the cart total before discount with the same rate. If that matches, the store discounts the total.
  4. If neither matches, tax is probably entering the sum before or after the discount.

When tax is involved

A percentage discount gives the same result mathematically whether it comes before or after tax, but the rounding does not. A store that rounds the discounted price, then adds tax and rounds again, can land a cent away from one that computes everything and rounds once. To add or remove tax at the rate you enter, use the VAT calculator.

Once you know the cause

  • The amount the customer pays is the checkout figure. Quote that one in ads and messages.
  • If you are comparing the calculator with a supplier invoice, ask how they round instead of assuming an error.
  • The gap does not grow much: at most half a cent per rounding, but it shows up on orders with quantities.

Within the calculator itself, the displayed saving is the original price minus the rounded final price, so the two displayed figures always add back to the original. That is why one unit shows a saving of 5.00 even though the exact discount is 5.0025.

Common questions

Which method is right?

Both are, as long as the rounding is done the usual way. What matters is that the customer sees the amount they will pay before they pay it.

Can the calculator show three decimals?

No, every amount is shown to two decimals. The maths inside is exact and the rounding happens only for display, so knowing when your store rounds is enough to explain the gap.