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

Cost Calculator calculator

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 the Cost 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

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
  • 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.

How does a cost calculator work?

A cost calculator applies simple arithmetic ratios and percentages to turn raw numbers into decisions:

  • Unit price divides total cost by quantity, so a $12 bag holding 500 grams works out to $0.024 per gram.
  • Total cost multiplies unit price by quantity, adds sales tax on that subtotal, then adds a flat shipping fee.
  • Markup inflates a wholesale cost by a percentage to set a sell price.
  • Markdown subtracts a discount from a list price.

The U.S. Federal Trade Commission encourages shoppers to compare per-unit prices precisely because package sizes rarely align cleanly. Because every operation is deterministic arithmetic, results are exact and reproducible with no estimation involved.

What is the difference between markup and profit margin?

Markup and margin describe the same profit from two different bases, so confusing them can quietly erode earnings.

Markup is profit expressed as a percentage of cost: a $10 item sold for $15 carries a 50% markup because the $5 profit equals half the cost.

Margin is that same $5 profit expressed as a percentage of the $15 selling price, which is 33.3%.

As Investopedia notes, retailers who set prices by margin but think in markup terms routinely underprice. This calculator computes markup on cost, so if you target a specific margin, convert first: margin divided by (1 minus margin) equals the required markup.

How to compare unit prices between different package sizes

To compare package sizes fairly, reduce each option to a single per-unit price before deciding. Divide the total price by the quantity in a consistent unit, whether ounces, grams, sheets, or fluid ounces, then pick the lower figure.

The FTC's consumer guidance highlights unit pricing as the fastest way to see through deceptive package proportioning, and many jurisdictions require shelf labels for this reason.

Watch for mismatched units, such as a jar labeled in ounces beside one labeled in grams, and convert both to the same unit first. This calculator handles two items at once and flags the cheaper per-unit option plus your savings.

Practical uses for a cost and price calculator

A cost calculator earns its keep across everyday and professional settings:

  • Grocery shoppers use unit price mode to choose between bulk and single packs, while warehouse-club members verify that membership-sized quantities truly cost less per unit.
  • Small-business owners set consistent retail prices with markup mode and check clearance figures with markdown mode.
  • Freelancers and project managers estimate total spend, including tax and shipping, when quoting materials.
  • Home cooks scale ingredient costs, hobbyists price handmade goods for craft fairs, and resellers confirm margins before listing on marketplaces.

Because it runs entirely in your browser with no login, it fits quick decisions at the shelf, the desk, or the checkout page.

How do tax and shipping affect your total cost?

Tax and shipping can add a meaningful amount to a purchase that looks cheap on the product page.

In this calculator, sales tax applies only to the subtotal (unit price times quantity), and the flat shipping fee is added afterward, which reflects the common default in the United States.

However, tax treatment of shipping varies widely by state and country, so verify your local rule. Some jurisdictions tax combined shipping-and-handling charges while others exempt separately stated delivery fees.

If your shipping scales with order size rather than staying flat, fold it into the unit price before taxing so the total stays accurate for larger orders.

How to calculate the sale price after a percent-off discount

Finding a sale price is a single subtraction of a percentage from the original price. Multiply the list price by one minus the discount rate: a $50 item at 25% off becomes $50 times 0.75, or $37.50, saving $12.50.

Markdown mode does this instantly and reports both the final price and the dollars saved.

Beware stacked discounts, because taking 20% off and then another 10% off is not a 30% discount; it equals a 28% total reduction, since the second cut applies to the already reduced price. For coupons that stack, apply each percentage in sequence rather than adding them together.

Common mistakes when calculating cost and price

  • The most frequent error is confusing markup with margin, which leads to systematically underpriced products, as pricing references like Investopedia repeatedly warn.
  • A second mistake is comparing unit prices in mismatched units, such as pitting a per-ounce figure against a per-gram figure without converting.
  • Shoppers also forget to add tax and shipping, so a low sticker price hides a higher checkout total.
  • Others incorrectly add stacked discount percentages instead of applying them in sequence.
  • Finally, treating a flat shipping fee as taxable, or assuming it scales with quantity, distorts bulk-order estimates.

Slowing down to confirm units, bases, and tax rules prevents nearly all of these costly slips.

Why unit pricing matters for smart shopping

Unit pricing turns confusing shelf labels into a fair, apples-to-apples comparison, which is why consumer protection bodies promote it. The U.S. Federal Trade Commission and many state weights-and-measures programs support unit-price disclosure precisely because identical goods appear in countless package sizes designed to blur value.

A larger box is not automatically cheaper per unit, and premium branding can mask a higher per-ounce cost. By reducing every option to a single per-unit number, you sidestep marketing framing and buy on genuine value.

Over a full grocery run or a bulk business order, consistently choosing the lower unit price compounds into real savings without sacrificing quality or quantity.

Frequently Asked Questions

sell

Tags