SpunkArt
Numbers and money maths

How to write an invoice and calculate its total

An invoice is a written request for payment. A good one tells the client exactly what they bought, what it costs and how to pay, so nobody has to email back with questions. This page lists what to include and shows the arithmetic.

What every invoice should show

  • The word “Invoice” and a unique invoice number.
  • Issue date and due date, or payment terms such as “due in 30 days”.
  • Your details: business name, address and contact email. Add a tax or registration number if your jurisdiction requires it.
  • Client details: the name and address of the person or company paying, and a purchase order number if they gave one.
  • Line items: a short description, quantity or hours, unit price and line total for each item.
  • Subtotal, discount, tax and total due, each on its own line.
  • How to pay: accepted methods and the details needed for each.
  • Terms: any late fee or other condition you agreed in the contract.

Numbering invoices

Use a sequence that never repeats and never skips back, such as 0001, 0002, 0003, or a year prefix like 24-017. Never reuse a number, even for a cancelled invoice. Issue a credit note instead, so the record stays complete for your bookkeeping and tax records.

The arithmetic, in order

  1. Line total = quantity × unit price, rounded to the cent.
  2. Subtotal = the sum of the line totals.
  3. Discount = subtotal × discount rate, rounded to the cent.
  4. Taxable amount = subtotal − discount.
  5. Tax = taxable amount × tax rate, rounded to the cent.
  6. Total due = taxable amount + tax.

Worked example. A 10% discount and an example tax rate of 7%. Tax rules and rates depend on where you and the client are, and many services are not taxed at all, so check your state revenue department.

ItemQtyUnit priceLine total
Illustration work (hours)12$85.00$1,020.00
Logo licence1$450.00$450.00
Printed proofs3$19.99$59.97
  • Subtotal: $1,529.97
  • Discount: 1,529.97 × 0.10 = 152.997, rounded to $153.00
  • Taxable amount: $1,376.97
  • Tax: 1,376.97 × 0.07 = 96.3879, rounded to $96.39
  • Total due: $1,473.36

Rounding is half up: 0.5 cent or more rounds up.

Invoice total calculator

The calculator only does the maths. Copy the totals into your own invoice template or accounting software.

Does the order of discount and tax matter?

Yes. Tax normally applies to the price actually charged, so take the discount first. Taxing the full subtotal in the example gives $107.10 of tax instead of $96.39, overcharging the client $10.71.

Common mistakes

  • Vague descriptions. “Design work” invites questions. “Poster illustration, 3 rounds of edits” does not.
  • No due date. Without one, “later” is a valid reading.
  • Rounding only at the end. Round each line, or your line totals will not add up to the subtotal printed.
  • Sending to the wrong person. Ask who handles accounts payable before you send the first invoice.

FAQ

Is an invoice the same as a receipt?

No. An invoice asks for payment. A receipt confirms that payment arrived.

Can I charge a late fee?

Only if the client agreed to it in advance, and within any limits your state sets. Put it in the contract and on the invoice.