The short answer: an invoice total is built in a fixed order: subtotal, then discount, then tax on the discounted amount, then shipping and other charges. Total = (subtotal − discount) + tax + shipping. A $1,000 invoice with a 10% discount, 8% tax, and $20 shipping totals $992. Apply the discount after tax instead and it totals $1,000 — the $8 difference is the tax on the discount.

Key takeaways

  • Order of operations is the whole game. Discount first, tax second, shipping last.
  • Tax the discounted amount. Taxing the list price overcharges the customer and overstates the tax you remit.
  • Round once. Round each line to cents or round the total, but state which and never do both.
  • Terms are a price. 2/10 net 30 is worth about 37% annualised to the customer who takes it.
  • An invoice is evidence. Number, date, parties, tax, and terms are what make it collectable and auditable.

The order of operations

Every invoice is a short sequence of multiplications and additions:

Discount = subtotal × discount rate  |  Taxable amount = subtotal − discount  |  Tax = taxable amount × tax rate  |  Total = taxable amount + tax + shipping

Worked example: subtotal $1,000, discount 10%, tax 8%, shipping $20. Discount $100, taxable amount $900, tax $72, total $992. Change the order and the same inputs give $1,000: tax $80 on the full subtotal, less the $100 discount, plus $20 shipping. The $8 gap is exactly 8% of the $100 discount — tax charged on money the customer never paid.

A well-formed invoice shows each step on its own line, so the customer can check the arithmetic without calling.

Why the order matters

Tax is a percentage, so it multiplies whatever base it is given. Move the discount after tax and you have taxed money the customer never paid. On the example above the overcharge is $8; on a $250,000 annual invoicing volume at the same rates it is $2,000 of tax collected and remitted on revenue you did not receive.

There is an important exception. Some jurisdictions and some tax types require tax on the pre-discount price when the discount is a rebate or a coupon reimbursed by a third party. That is a statutory rule, not an arithmetic preference, so the sequence follows the rule for the sale rather than the easiest explanation.

Line items and rounding

Each line is quantity × unit price, rounded to cents. The subtotal is the sum of the rounded lines. Rounding twice, once per line and again at the subtotal, is how penny discrepancies appear between an invoice and a purchase order.

Twelve units at $41.6667 extend to $500.00 at full precision; rounding the unit price to $41.67 first gives $500.04. Three lines of $19.995 each sum to $59.99 at full precision but $60.00 when each line is rounded first. Neither convention is wrong, but only one can be the policy. Write it down, apply it in the system, and expect a query if you change it mid-year.

Discounts: trade, volume, and early payment

A trade discount is a reduction in the price of the goods and belongs on the invoice, before tax. A volume or promotional discount works the same way. An early-payment discount is different: it is a cash discount conditional on payment by a date, and it is usually presented as a term rather than deducted from the invoice total.

That distinction matters for the customer’s accounts payable and for your revenue. Deduct a 2% early-payment discount on the invoice face and you have granted it whether or not the customer pays within ten days; shown as a term, it is deducted only when the condition is met.

Discounts also interact with tax. A discount that reduces the consideration reduces the taxable amount in most VAT and sales tax systems; one reimbursed by a third party usually does not. Follow the tax return, not the invoice template.

Tax: what is actually taxable

Three questions decide the tax line. First, which lines are taxable: goods and services are treated differently, and exemptions depend on the product, the buyer, and the jurisdiction. Second, is shipping taxable: some jurisdictions tax delivery charges when they are part of the sale, others exempt separately stated freight. Third, is the quoted price tax-inclusive or tax-exclusive: a VAT or GST invoice usually shows tax-inclusive pricing with the tax broken out, while a U.S. sales tax invoice usually adds tax to a tax-exclusive subtotal.

Registration thresholds and nexus rules decide whether you charge at all. In the United States, economic nexus thresholds are set state by state; in the EU and UK, VAT registration and place-of-supply rules set the rate. None of this can be inferred from the invoice arithmetic, which is why the rate and the taxable base should both appear on the document.

Net terms and the real cost of waiting

Net 30 means the full amount is due 30 days after the invoice date. Net 60 and net 90 shift the financing burden to the supplier. “2/10 net 30” means a 2% discount if paid within 10 days, otherwise the full amount in 30.

That discount has an annualised cost. The customer who does not take it is effectively borrowing 98% of the invoice for 20 extra days at a 2% fee: (0.02 ÷ 0.98) × (365 ÷ 20) = 37.2% a year. For the supplier, offering the discount is a way to buy 20 days of cash flow at a price that is usually cheaper than an overdraft; for the customer, forgoing it is an expensive source of short-term credit.

Terms should match the cash conversion cycle, not the calendar: paying suppliers in 30 days while collecting in 60 funds a month of operations on every sale.

A worked invoice

Line Calculation Amount
Consulting, 20 hours 20 × $145.00 $2,900.00
Hardware, 6 units 6 × $240.00 $1,440.00
On-site setup 1 × $510.00 $510.00
Subtotal 2,900 + 1,440 + 510 $4,850.00
Discount, 5% 4,850 × 0.05 −$242.50
Taxable amount 4,850 − 242.50 $4,607.50
Sales tax, 7.25% 4,607.50 × 0.0725 $334.04
Shipping Flat rate $65.00
Total due 4,607.50 + 334.04 + 65.00 $5,006.54

Note the tax base: $4,607.50, not $4,850.00 and not $5,006.54. If shipping were taxable in this jurisdiction, the base would be $4,672.50 and the tax $338.76, a difference of $4.72 that a customer will notice on a large order.

What belongs on the invoice

A collectable invoice carries a unique sequential number, the issue date and due date, the legal names and addresses of both parties, and any tax registration numbers. It names the purchase order when one is required, since a missing PO is a common reason for rejection on receipt.

Each line needs a description, quantity, unit price, and extended amount. Then the subtotal, discount, taxable base, tax rate, tax amount, shipping, and total, followed by the payment terms, payment method, and currency. Where the customer is a business paying for services, the record should let the payer decide whether a Form 1099-NEC is due in the United States; collect a Form W-9 up front and avoid a January chase.

Keep a copy. The IRS expects records that substantiate the income and deductions on a return, and an invoice matched to a bank deposit is the simplest substantiation.

Common mistakes

  • Applying the discount after tax, or to the total including shipping.
  • Taxing shipping that is exempt, or exempting it where it is taxable.
  • Quoting tax-inclusive prices and then adding tax again at the total.
  • Rounding each line and then rounding the total to the nearest dollar.
  • Reusing invoice numbers, or letting the sequence restart after a software migration.
  • Omitting the due date, so the clock never starts and the debt never ages.
  • Honouring an early-payment discount deducted after the discount window has closed.

Practical caveats

Part-payments, credit notes, and retainage complicate the arithmetic. A credit note should reference the original invoice and mirror its tax treatment, and a deposit taken before delivery is usually a payment on account, with the tax point depending on the jurisdiction.

Multi-currency invoices need a stated rate and its date, plus a policy for who bears the difference when payment arrives three weeks later. E-invoicing mandates increasingly require a set format and a clearance step, which can make a PDF attachment insufficient.

Finally, an invoice is not a contract: it records what was agreed, while the purchase order or signed proposal defines the obligation. In a dispute, the invoice proves the amount and the contract proves the duty.

Frequently asked questions

Is tax calculated before or after a discount?

After, on the discounted amount, unless local rules say otherwise. Some jurisdictions require tax on the pre-discount price for third-party reimbursed coupons.

Is shipping taxable?

It depends on the jurisdiction and on whether the charge is separately stated. Check the rule for the destination, and apply it consistently across invoices.

What does net 30 mean?

The full amount is due 30 days after the invoice date. Net 10, net 45, and end-of-month terms change only the starting point and the length.

What is 2/10 net 30 worth?

About 37% annualised for the customer who forgoes it, calculated as (0.02 ÷ 0.98) × (365 ÷ 20). It is a financing decision, not a formality.

How should I round an invoice?

To cents, once, and by a stated method. Rounding per line and again at the total is what creates one-cent mismatches with the purchase order.

Do I always need to charge sales tax?

Only where you are registered or required to be. Thresholds and nexus rules vary by state and country, so confirm the position for each jurisdiction you sell into.

Further reading

Keep exploring

Read next Rule of 40: Growth Plus Margin for SaaS The Rule of 40 adds revenue growth and profit margin into one score. See which margin to use,… Read next CAC Payback: Months to Recover Acquisition Cost CAC payback divides acquisition cost by monthly gross profit. See what belongs in each input, how churn stretches… Read next Break-Even with 3 Products: Mix and Weighted Margin Three products break even on a unit-weighted contribution margin. Work through the split, the rounding residue, mix shifts,…

Decision path

Use this guide in a decision

Open Business Decision Center Open companion solver