This calculator is for anyone selling physical products online who needs a fast, honest read on what a product actually earns. Type in a selling price and a unit cost and it returns gross profit, gross margin and markup instantly. That covers the store owner pricing a new product, the buyer comparing two suppliers, and the operator deciding whether a slow seller is worth keeping in the catalog.
Margin matters more in ecommerce than in most retail because so many hands take a cut before you get paid. Platform subscriptions, payment processing, marketplace commissions, inbound freight and packaging all pull from the same pool of gross profit, and returns quietly claw back margin you thought you had already banked. A product that looks comfortable at 40 percent on paper can be far thinner once those costs are loaded into the unit cost field.
The number this tool produces is also the ceiling on everything else you do. Gross margin decides how much you can afford to pay for a click, whether free shipping is survivable, and how deep a discount can go before a sale loses money. Getting it right per product, not just store-wide, is the difference between scaling a winner and scaling a loss.
Profit margin calculator
Margin is profit as a share of price. Markup is profit as a share of cost. They are not the same number.
Enter a product’s selling price and its unit cost to see gross profit, gross margin and markup update as you type. Everything runs in your browser, so nothing you enter is stored or sent anywhere.
How this is calculated
gross_profit = price - cost
gross_margin_% = (price - cost) / price * 100
markup_% = (price - cost) / cost * 100
Gross margin divides profit by the selling price, while markup divides the same profit by the cost. That is why a 50 percent markup is only a 33.3 percent margin.
Worked example: a product sells for 50.00 and costs 30.00 to make and land. Gross profit is 20.00. Gross margin is 20 / 50, or 40 percent. Markup is 20 / 30, or 66.7 percent.
How to read the result
Gross profit is the dollars one sale leaves behind, and margin is the same fact expressed as a share of price, which makes products of different prices comparable. If the margin looks thin, check the cost field first: the most common mistake is entering the bare supplier price and forgetting inbound shipping, payment fees and packaging, which flatters every product in the catalog by the same few points.
Use markup when you are working forward from a cost to set a price, and margin when you are judging what a sale is worth. A thin margin is not automatically a verdict to kill the product: a low-margin item that drives repeat orders or fills carts to a free-shipping threshold can still earn its place. It does mean the product cannot carry much paid advertising on its own.
Benchmarks: what margins tend to look like
There is no universal target, but the ranges practitioners talk about are fairly consistent. Many established stores selling their own branded physical products land somewhere around 40 to 60 percent gross margin, and dropshipped or reseller catalogs usually sit well below that because the supplier keeps most of the spread. Commodity electronics and grocery-style consumables run thin, often in the teens or lower on a gross basis, while beauty, jewelry, supplements and print-on-demand goods commonly carry much fatter margins that absorb their higher return and marketing costs.
On the net side, a widely used rule of thumb is that a healthy small ecommerce operation keeps somewhere in the mid single digits to low teens as net margin after advertising and overhead. Treat these as orientation, not targets: the useful comparison is between your own products and your own overhead, which is exactly what this calculator is for.
Frequently asked questions
What is a good profit margin for ecommerce?
As rough rules of thumb, many stores selling their own branded products aim for 40 to 60 percent gross margin, resale and dropship catalogs often run 15 to 30 percent, and a healthy net margin after advertising and overhead commonly lands in the mid single digits to low teens. Category matters a lot: consumables and electronics run thinner, beauty and jewelry run fatter, so compare against your own overhead first.
What is the difference between margin and markup?
The practical difference is direction: markup is the tool for setting a price from a known cost, margin is the tool for judging what a sale is worth once the price exists. Mixing them up cuts prices too low, because a “50 percent” target applied as markup yields a much smaller margin than intended. The definitions are covered in the section above.
Should shipping and payment fees be in the cost?
For a truer gross margin, include every variable cost of delivering one unit: product cost, inbound shipping, payment processing and packaging. Leave out fixed monthly costs like rent or software, which belong in net margin.
How do I turn markup into a selling price?
Multiply your unit cost by one plus the markup as a decimal. A 30.00 cost at 66.7 percent markup is 30 times 1.667, which is 50.00.
Verdict
Run every product in your catalog through this calculator with fully loaded costs, not just the supplier invoice, and rank them by margin. The bottom of that list is where pricing changes, supplier negotiations or delistings should start. To see which products and channels actually drive those margins day to day, pair this tool with one of the platforms in our ecommerce analytics tools roundup, and if platform fees are what is squeezing you, our Shopify vs WooCommerce comparison breaks down the real cost of each stack.
