Online Tool Store Online Tool Store

Margin Calculator

Calculate selling price, profit per unit, and markup percentage from a cost price and target profit margin, instantly in your browser.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

$
%

Example shown — replace it with your own cost and margin.

Selling price

Profit per unit

Markup

Cost as % of price

How the margin calculator works

  1. Enter what the item costs you (cost price).
  2. Enter the profit margin you want to earn, as a percentage of the selling price.
  3. The calculator instantly shows the selling price, profit per unit, and the equivalent markup percentage.

The formula

Margin is profit expressed as a share of the selling price, not the cost — that’s the detail that trips people up when pricing a product. To find a selling price that hits a target margin, divide cost by one minus the margin:

selling price = cost ÷ (1 − margin)

Example: a $40 cost with a 35% target margin gives 40 ÷ (1 − 0.35) = 40 ÷ 0.65 = $61.54. Profit per unit is $21.54, which works out to a 53.8% markup on cost.

FAQ

What’s the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost price. A 35% margin and a 35% markup on the same cost give different selling prices — this calculator shows both.

Why can’t margin be 100% or more?

Margin is profit divided by selling price, so it can only approach 100% as cost approaches zero — it can never reach or exceed it for a positive cost. This calculator caps margin at 99.99% for that reason.

Does this include taxes or fees?

No. This is a simple cost-and-margin calculation. For a price that also covers sales tax, payment processing fees, or shipping, add those costs into the cost price first.

Is my pricing data saved anywhere?

No. All calculations happen in your browser as you type — nothing is sent to Online Tool Store or stored anywhere.

How we compare

Feature Online Tool Store Calculator.net Shopify's margin calculator
Shows margin and markup together Margin only
Updates instantly as you type Calculate button
No sign-up or store account needed Shopify account

For a quick, no-account way to price a product from cost and target margin, the Online Tool Store Margin Calculator gives you both margin and markup at once.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.