Sending an invoice looks simple, but the number on it is rarely just the sum of your line items. Sales tax must be added, a late fee may already be baked in, and if you offer early-payment terms like "2/10 Net 30," the client can pay a smaller amount within a shorter window. This invoice calculator breaks all of that out in seconds, so the total you quote is the total you actually collect.
Enter your subtotal, tax rate, late fee, and discount terms, and the result card shows both the amount due on the net-terms date and the reduced amount due if the client pays early. It works for freelancers, small agencies, contractors, and any B2B seller who sends invoices rather than running a register.
How to Use
- Enter the Invoice Subtotal — the sum of all line items before tax, fees, or discounts. This is usually your product or service total.
- Set the Sales Tax Rate. Enter 0% if your business or this customer is tax-exempt; otherwise use the rate for your state or locality (commonly 4%–10%).
- Add a Late Fee only if this invoice is already overdue and you are stacking a flat charge on top of the original total. Leave it at 0 when invoicing fresh.
- Set the Early-Payment Discount percentage. The classic offer is 2% off if the client pays early — that is where the "2" in "2/10 Net 30" comes from.
- Choose the Discount Window in days (often 10) and the Net Terms in days (commonly 30). Together they read as "2% discount within 10 days, full amount due within 30 days."
- Read the result card: it shows tax, the discount, the full total due at net terms, and the lower amount due if the client pays inside the discount window.
The math is straightforward: tax is calculated on the subtotal, the early-payment discount is also calculated on the subtotal (not on tax or fees), and the net due amount is the subtotal plus tax plus any late fee.
The Invoice Formula
Every invoicing system — including open-source tools like Invoice Ninja — uses the same four calculations:
- Sales tax = subtotal × tax rate ÷ 100
- Early-payment discount = subtotal × discount percent ÷ 100
- Total due (net terms) = subtotal + sales tax + late fee
- Early-payment amount = total due − early-payment discount
Why is the discount taken off the subtotal rather than the taxed total? In standard B2B practice, a cash discount rewards early payment of the goods or services themselves; tax authorities generally do not discount sales tax, and a flat late fee is not part of what the client is being encouraged to pay early. Keeping the discount on the subtotal matches how most accounting software posts the transaction.
Worked example: a $1,000 subtotal at 8.5% tax with a 2% early-payment discount. Tax is $85, the discount is $20, so the full net due is $1,085, and the amount due within the discount window is $1,065. Offering 2% off costs you $20 but can shave two or three weeks off your receivables — usually worth far more than the discount itself.
Why Early-Payment Terms Matter
A "2/10 Net 30" offer is one of the cheapest financing tools a small business has. From the buyer's side, paying 20 days early to earn a 2% discount equals roughly a 37% annualized return on that cash — which is why large companies gladly take the discount. From your side, you collect cash weeks earlier, lower your days-sales-outstanding, and reduce the chance that the invoice ages into a collection problem.
Flat late fees work the opposite direction: they compensate you when the client pays late. Many states cap late fees at 1.5%–2% per month, and some require you to spell the fee out on the invoice before you can charge it. A clean, calculated total removes ambiguity for both sides.
Examples
Example 1 — A freelancer's monthly invoice. A designer invoices $1,000 of work at an 8.5% local sales tax, offers 2/10 Net 30, and adds no late fee. Tax comes to $85, the discount is $20, the net due is $1,085, and the discounted early-pay amount is $1,065. If the client pays on day 8, the designer receives $1,065 instead of $1,085 on day 30.
Example 2 — An overdue invoice with a late fee. A contractor's $2,500 invoice at 7% tax is 12 days late, so a $150 flat late fee is added. Tax is $175, the 3% early-payment discount is $75, the full amount now due is $2,825, and had the client paid inside the discount window the amount would have been $2,750.
Example 3 — A large B2B order. A supplier sends a $2,500,000 invoice at a 6.25% tax rate with a $500 processing fee and a 1.5% early-payment offer. Tax is $156,250, the discount is $37,500, the net due totals $2,656,750, and paying early settles for $2,619,250 — a savings of $37,500 for the buyer. The calculator handles invoices this large without rounding errors.
Example 4 — A tax-exempt or zero-subtotal invoice. When the subtotal is $0 but a $25 flat late fee is applied, tax and discount are both $0, and the total due is simply $25 — useful when you are billing only a charge, not a sale.
FAQ
How do I calculate the total amount of an invoice?
Add the subtotal of all line items, multiply the subtotal by your sales tax rate to get tax, add any flat late fee, and subtract any early-payment discount the customer qualifies for. This calculator does all four steps and shows each component separately.
What does "2/10 Net 30" mean?
It is shorthand for payment terms: a 2% early-payment discount is allowed if the invoice is paid within 10 days; otherwise the full (net) amount is due within 30 days. Other common versions are 1/10 Net 30 and 3/15 Net 45.
Should the early-payment discount apply to tax?
No. Standard B2B practice and accounting software apply the discount to the merchandise or service subtotal, not to sales tax. Tax is collected on behalf of the taxing authority and is not discounted when payment is accelerated.
How much should I charge for a late fee?
Many businesses use 1%–1.5% per month, or a flat fee of $25–$50. Some states cap late fees or require the fee to be disclosed on the original invoice before it can be charged. Enter a flat amount in the Late Fee field to include it in the total.
Is sales tax added before or after the discount?
Sales tax is calculated on the subtotal first, then the early-payment discount is subtracted from the net due total. The discount itself is not taxed, and neither is a flat late fee.
Can I use this for invoices over $1,000,000?
Yes. The calculator uses full-precision arithmetic and rounds only the final dollar-and-cent figures, so large invoices such as corporate or wholesale orders compute exactly the same way as small ones.
What if my subtotal is negative or tax-exempt?
Enter 0% for a tax-exempt invoice and the tax line disappears. A negative subtotal is rejected, because an invoice subtotal represents goods or services delivered and should never be below zero — issue a credit note separately instead.
Disclaimer
This invoice calculator is provided for informational purposes only and does not constitute accounting, tax, or legal advice. Sales tax rates, late-fee caps, and early-payment rules vary by state, country, and contract. Always confirm the correct tax rate for your jurisdiction and the payment terms agreed with your customer before issuing an invoice, and consult a qualified accountant or tax professional for your specific situation.