Subtotal Calculator

Calculate gross subtotal from multiple line items, discount amount, and net subtotal.

CalcHub

Subtotal Calculator

Full page
Live

Preview

49.99

Mirrors whichever field is focused below.

Entries
%

Add to workspace

Run up to six calculators on one board. You can try without an account—your board stays on this device until you sign in to save it.

Add to workspace

No account needed—build a local board (one workspace on this device). Sign in later to save it to your account.

Open My workspace →

The Subtotal Calculator helps you compute a clean pre-tax transaction total from multiple line items and a single discount percentage. It is useful when you need to turn unit prices and quantities into a gross subtotal, then convert that amount into a net subtotal after discount. This is especially important in eCommerce, invoicing, purchasing, and quote preparation where line-item accuracy affects the final amount shown to a customer or internal team.

The calculator assumes a straightforward discount applied once to the gross subtotal. That means it is best used with tax-exclusive prices and without double-discounting in the cart or checkout flow. If your pricing already includes tax, fees, or bundled adjustments, interpret the result carefully so you do not mix subtotal math with other transaction components.

How This Calculator Works

The calculator first builds a gross subtotal by multiplying each line item’s unit price by its quantity and then adding all line totals together. After that, it applies the discount percentage to the gross subtotal to determine the discount amount. The net subtotal is the gross subtotal minus the discount amount.

In practical terms, the calculator is a compact way to verify that item pricing, quantities, and promotional discounts reconcile to the same amount your cart, invoice, or order system should display before tax.

Formula

Gross Subtotal = Σ(unit price × quantity)

Discount Amount = Gross Subtotal × (Discount % ÷ 100)

Net Subtotal = Gross Subtotal - Discount Amount

VariableMeaning
unit pricePrice of one item before tax and before discount
quantityNumber of units for that line item
Gross SubtotalTotal before discount is applied
Discount %Percentage reduction applied once to the gross subtotal
Discount AmountDollar amount removed from the gross subtotal
Net SubtotalSubtotal after discount, before tax or other charges

Example Calculation

  1. List the line items: Item A is $10 each with quantity 2, and Item B is $20 each with quantity 1.
  2. Calculate each line total: Item A = 10 × 2 = 20, Item B = 20 × 1 = 20.
  3. Add the line totals to get the gross subtotal: 20 + 20 = 40.
  4. Apply the discount rate of 10%: 40 × 0.10 = 4, so the discount amount is $4.
  5. Subtract the discount from the gross subtotal: 40 - 4 = 36, so the net subtotal is $36.

Where This Calculator Is Commonly Used

  • eCommerce carts and checkout previews
  • Retail invoices and customer quotes
  • Wholesale order sheets
  • Freelance and service invoicing when line items are priced separately
  • Purchase planning and budget estimates
  • Promotional pricing reviews before tax is added

How to Interpret the Results

The gross subtotal shows the full value of the items before any discount is applied. The discount amount shows how much value is removed from that gross total. The net subtotal is the amount you should treat as the pre-tax subtotal if the discount is meant to reduce the merchandise total only.

If the result seems off, check whether the unit prices already include tax, whether quantity was entered correctly, and whether the discount was also applied elsewhere in the checkout flow. Small rounding differences can appear if line items are rounded too early instead of after the subtotal is computed.

Frequently Asked Questions

Does this calculator include tax?

No. It is intended to calculate the subtotal before tax. If you need the final order amount, tax should usually be applied after the net subtotal is found, unless your pricing model works differently.

Should I enter tax-inclusive prices?

Usually no. For the cleanest subtotal calculation, use tax-exclusive unit prices. If your prices already include tax, the result may not match a standard pre-tax subtotal and can be misleading in reporting or checkout.

Can I apply more than one discount?

This calculator assumes one discount percentage applied once to the gross subtotal. If you have stacked promotions, you should calculate them carefully because applying multiple discounts sequentially is not the same as combining them into one rate.

Why is my subtotal different from my cart total?

Differences often come from shipping, tax, fees, rounding rules, or a discount being applied at a different stage. Make sure you are comparing like-for-like values, especially pre-tax subtotal versus final order total.

What if I round each line item first?

Rounding each line too early can change the final subtotal slightly. In most cases, it is better to calculate all line totals first, sum them, and then apply discount and rounding at the end.

Is the discount amount always based on the gross subtotal?

In this calculator, yes. The discount is calculated as a percentage of the gross subtotal, not on the already discounted amount. That is the standard approach for a simple pre-tax subtotal calculation.

FAQ

  • Does this calculator include tax?

    No. It is intended to calculate the subtotal before tax. If you need the final order amount, tax should usually be applied after the net subtotal is found, unless your pricing model works differently.

  • Should I enter tax-inclusive prices?

    Usually no. For the cleanest subtotal calculation, use tax-exclusive unit prices. If your prices already include tax, the result may not match a standard pre-tax subtotal and can be misleading in reporting or checkout.

  • Can I apply more than one discount?

    This calculator assumes one discount percentage applied once to the gross subtotal. If you have stacked promotions, you should calculate them carefully because applying multiple discounts sequentially is not the same as combining them into one rate.

  • Why is my subtotal different from my cart total?

    Differences often come from shipping, tax, fees, rounding rules, or a discount being applied at a different stage. Make sure you are comparing like-for-like values, especially pre-tax subtotal versus final order total.

  • What if I round each line item first?

    Rounding each line too early can change the final subtotal slightly. In most cases, it is better to calculate all line totals first, sum them, and then apply discount and rounding at the end.

  • Is the discount amount always based on the gross subtotal?

    In this calculator, yes. The discount is calculated as a percentage of the gross subtotal, not on the already discounted amount. That is the standard approach for a simple pre-tax subtotal calculation.