Cost Calculator

Everyday shoppers, small-business owners, and resellers constantly need to convert between total cost, quantity, unit price, and final retail price. This calculator bundles the three most common operations into one tool. Unit price mode divides total cost by quantity and lets you compare two items side by side to see which is cheaper per unit. Total cost mode multiplies unit price by quantity, then layers on a tax percentage and flat shipping fee to produce the true out-the-door cost. Markup and markdown mode takes a wholesale cost plus a markup percentage to produce a sell price, or starts from a list price and subtracts a discount percentage to produce the final sale price. All calculations run in your browser and update live as you type.

star 4.8
auto_awesome AI
New

calculate Inputs

Item A

$

Item B (optional, for comparison)

$

Leave at 0 if you only want Item A’s unit price.

analytics Results

Item A / unit
$0.333
Item B / unit
$0.303
emoji_events
Cheaper per unit
Item B
Save $0.030 per unit

tips_and_updates Tips

  • Always compare the unit price rather than the sticker price when deciding between different package sizes
  • For total cost estimates, remember that tax usually applies only to the subtotal, not to shipping
  • A 50% markup on cost is not the same as a 50% margin on revenue; this tool computes markup on cost
  • Use markdown mode to quickly check the final sale price of an item after a percent-off discount
  • Shipping is entered as a flat fee; if your shipping scales with quantity, add it before taxing in unit price mode instead
  • Round unit price to three or four decimals for small items like bulk candy or fabric by the yard

How to Use This Calculator

1

Pick a mode

Choose unit price for per-unit comparisons, total cost for tax-plus-shipping estimates, or markup/markdown for pricing decisions.

2

Enter your numbers

Fill in the fields that appear for the selected mode. In unit price mode you can fill Item B to compare two products side by side.

3

Read the results

Results update live: per-unit prices with a comparison winner, a subtotal and grand total, or the marked-up sell price and markup amount.

4

Adjust and iterate

Tweak quantity, tax, shipping, or percent values to see how the answer changes. Everything runs in your browser.

The Formula

Unit price is a straightforward ratio of total cost to quantity, which makes it easy to compare packages of different sizes. Total cost adds sales tax to the subtotal (unit price times quantity) and then adds shipping. Markup takes a wholesale cost and inflates it by a percentage so the seller earns a margin; markdown does the reverse, reducing a list price to encourage a sale.

Unit Price = Total Cost / Quantity; Total Cost = Unit Price x Quantity x (1 + Tax%) + Shipping; Sell Price = Cost x (1 + Markup%); Final Price = Price x (1 - Discount%)

lightbulb Variables Explained

  • Total Cost Amount paid for all units combined
  • Quantity Number of units purchased
  • Unit Price Cost per single unit
  • Tax% Sales tax rate as a percentage of the subtotal
  • Shipping Flat shipping or handling fee added after tax
  • Markup% Percentage added to cost to reach sell price
  • Discount% Percentage subtracted from list price to reach final price

tips_and_updates Pro Tips

1

Always compare the unit price rather than the sticker price when deciding between different package sizes

2

For total cost estimates, remember that tax usually applies only to the subtotal, not to shipping

3

A 50% markup on cost is not the same as a 50% margin on revenue; this tool computes markup on cost

4

Use markdown mode to quickly check the final sale price of an item after a percent-off discount

5

Shipping is entered as a flat fee; if your shipping scales with quantity, add it before taxing in unit price mode instead

6

Round unit price to three or four decimals for small items like bulk candy or fabric by the yard

Compare Prices, Calculate Markups, and Optimize Spending

Understanding the true cost of products and services is fundamental to smart spending, whether you are a consumer comparing grocery prices, a small business owner setting retail markups, or a project manager estimating total expenses. Unit price comparison is one of the most effective money-saving techniques — stores often display per-unit prices on shelf labels, but package sizes and units vary, making quick mental math unreliable. A 24-ounce jar at $4.99 versus a 16-ounce jar at $3.49 is not immediately obvious without computing the per-ounce cost ($0.208 vs. $0.218). For business owners, calculating the right markup and margin is essential for profitability: a 50% markup on cost translates to a 33.3% profit margin on the selling price, a distinction that trips up many entrepreneurs. This cost calculator provides three essential modes — unit price comparison for side-by-side product evaluation, markup and margin calculation for pricing decisions, and total cost estimation for project budgeting. Enter your numbers and get instant answers with clear breakdowns that eliminate guesswork from everyday financial decisions.

When to use a unit price calculator

Grocery stores, warehouse clubs, and online retailers package the same product in many different sizes. Comparing headline prices alone almost always misleads shoppers. Dividing total price by quantity gives a true per-unit figure so you can tell at a glance whether the family-sized package really is cheaper or just bigger. This calculator lets you compare two items side by side and highlights which one is cheaper per unit, along with the savings you would realize by choosing it.

Total cost with tax and shipping

Online purchases often look cheap until tax and shipping are added at checkout. Enter your unit price, the quantity you plan to order, the local sales tax rate, and the flat shipping fee, and the calculator will show a clean breakdown of subtotal, tax, shipping, and grand total. This is especially useful for budgeting bulk orders, office supply runs, and small-business purchasing.

Markup and markdown for retailers

Resellers routinely mark up wholesale items to produce a sell price, and shoppers routinely look for marked-down final prices on sale items. Markup mode takes a cost plus a markup percentage and returns the sell price and the added dollar amount. Markdown mode takes a list price and a discount percentage and returns the sale price and the dollars saved.

Frequently Asked Questions

sell

Tags

verified

Data sourced from trusted institutions

All formulas verified against official standards.