How Order and Invoice Totals are Calculated

See how the Price, Subtotal, Tax Amount and Row Total columns and order and invoice totals are calculated, with an example.

🚧

How Totals are calculated depends on your Tax Settings

In Settings > Tax > Tax Settings there are several configurations that can change how the totals are calculated and/or displayed. This Article gives a basic overview of the possible permutations.

Sample Order

This sample order actually shows how the Subtotal on the Order can be different from the Subtotal on the Invoice:

888

In this example above, you will actually see that the Subtotal Column minus the Discount Amount Column does NOT equal the Row Total column! This is correct because based on this user's settings, the Row Total = Original Price Minus Discount Amount, Plus Tax Amount.

Column Calculations

Note: Calculations may vary based on settings in Settings > Tax > Tax Settings

ColumnCalculation
Original PricePrice of the product (respects Incl/Excl Tax Setting)
PriceOriginal Price Plus Tax Percent (if Original Price is Excl. Tax)
SubtotalPrice * Qty
Tax AmountTax Percent * Original Price (if Excl. Tax) subtracted by Discount Amount
(Order of operations depends on Tax Settings for Discounts)
Row TotalOriginal Price Minus Discount Amount, Plus Tax Amount.
(Order of operations depends on Tax Settings for Discounts)

Totals Calculations

Note: Calculations may vary based on settings in Settings > Tax > Tax Settings

TotalCalculation
Order SubtotalSum of Subtotal Column
Invoice SubtotalSum of Row Total + Discount Amount
Grand TotalSum of Row Total Column

Examples

These examples use a $15 product, a 20% discount and 15% tax. Which one applies depends on Apply Customer Tax in Settings > Tax > Tax Settings.

Applying Tax After Discount:

Base PriceDiscount 20%Price after discountTax (15%)Price + Tax = Row Total
$15$3$12$1.80$13.80

Applying Tax Before Discount:

Tax is worked out on the full price, then the discount is taken off.

Base PriceTax (15%)Discount 20%Price - Discount + Tax = Row Total
$15$2.25$3$14.25

Did this page help you?