Price Quantity Calculator - Total Cost and Margin
Calculate total cost, discounts, taxes, and cost-plus selling prices.
Enter unit price, quantity, discount, tax, and the cost-plus profit margin, then select Calculate.
About the Price Quantity Calculator
The price quantity calculator turns a unit price and a quantity into a discounted, taxed total cost and then into a cost-plus selling price. It is built for a simple quote: line items at one unit price, one discount rate, one tax rate, and one markup on cost. A 10 percent discount is taken from the subtotal before tax. Tax is then applied to the discounted amount. The selling price multiplies that total cost by one plus the profit margin, so a 20 percent margin means a 20 percent markup on cost, not a 20 percent gross margin on sales. Formula: subtotal = unit price × quantity; after discount = subtotal × (1 − discount rate); total cost = after discount × (1 + tax rate); selling price = total cost × (1 + profit margin); discount amount = subtotal − after discount. Discount, tax, and margin are percentages. Values below 0 or 100 and above are rejected; 0 is allowed. A 100 percent discount is not accepted because it would drive cost to zero and hide a free-goods case. Cost-plus pricing is not the same as margin-on-sales pricing. If you need selling price such that profit is 20 percent of the selling price, the markup on cost is 25 percent, not 20 percent. This calculator does not make that conversion. Tax may be sales tax, VAT, or GST depending on how you interpret the rate; it is applied once to the discounted subtotal. Quantity discounts that change the unit price in tiers should be entered as the already-selected unit price rather than as a second discount. Purchasing teams use the price quantity calculator to check a vendor invoice against a quoted discount. Sellers use it to sketch a list price after tax and a target markup. Shipping, duties, and payment fees are omitted unless you fold them into unit price or tax. Treat the output as a planning quote in US dollars, not a tax return or a binding offer. Recalculate when any rate or the quantity changes.
Price and quantity examples
Line-item quotes with discount, tax, and cost-plus markup.
| Inputs | Output | Note |
|---|---|---|
| $100 unit, qty 2, 10% discount, 10% tax, 20% margin | Total cost $198.00; discount $20.00; selling price $237.60 | Discount applies before tax; margin is a markup on cost. |
| $50 unit, qty 4, 0% discount, 0% tax, 50% margin | Total cost $200.00; discount $0.00; selling price $300.00 | A 50 percent cost-plus markup on a $200 cost. |
| $25 unit, qty 10, 20% discount, 8% tax, 10% margin | Total cost $216.00; discount $50.00; selling price $237.60 | A larger discount with a modest markup. |
How to calculate total cost and selling price
- Enter the unit price and quantity for the line item.
- Enter discount rate, tax rate, and the cost-plus profit margin as percentages.
- Select Calculate to review total cost, discount amount, and selling price.
- Reset and change the margin if you meant a sales margin rather than a markup on cost.
Price quantity calculator FAQ
Is the profit margin a markup on cost or a margin on sales?
It is a markup on cost. Selling price equals total cost × (1 + profit margin). A 20 percent entry adds 20 percent of cost, which is a 16.67 percent margin on the selling price.
In what order are discount and tax applied?
Discount reduces the unit-price subtotal first. Tax is then applied to the discounted amount. That is a common sales-tax sequence, but local rules can differ.
Why is a 100 percent discount rejected?
A full discount would drive total cost to zero and make a cost-plus selling price meaningless. Enter a 99.99 percent cap or handle complimentary goods outside this quote.
Can I include shipping?
Not as a separate field. Add freight into the unit price or treat it as part of the tax-like rate only if that matches how you invoice.
Is this a tax invoice?
No. The tax line is a single percentage applied to the discounted subtotal. Confirm rates, exemptions, and rounding with your tax rules before billing.