How to Use
- To find your margin, enter Cost and Revenue / Selling Price. For example, cost 50 and price 100 returns gross profit 50, Margin 50%, and Markup 100%.
- To set a price from a target, enter Cost and Target Margin %. For example, cost 80 and target Margin 20% calculates a selling price of 100.
- Click "Load example" to start with a realistic ecommerce product, then adjust a valid pair of Cost, Selling Price, Margin, or Markup inputs to see how pricing changes affect your bottom line.
Core Features
- Interactive Multi-Way Calculation: Enter cost and selling price, or cost with a target margin or markup, and the missing price, gross profit, Margin, and Markup values update instantly.
- Margin vs. Markup Clarity: See both metrics side by side so you do not confuse profit as a share of revenue with markup over cost.
- Determine Selling Price: Useful for Shopify sellers, Amazon sellers, freelancers, and small service providers who need to price offers from cost and target margin.
- Gross Profit First: The result panel highlights absolute gross profit before percentage ratios, so you can see the real money outcome.
- 100% Client-Side Privacy: Your product cost, price, and margin targets stay in your current browser and are not uploaded.
Related Tools
The 2026 FIRE Calculator (Inflation Adjusted). Simulate real purchasing power, analyze retirement savings gaps, and generate a visual wealth roadmap. One-click CSV export for your Excel or Notion finance dashboard. 100% Private, client-side calculation.
Calculate trade position size from account balance, risk %, entry, and stop loss. Runs locally in your browser with no uploads, so you can compare risk scenarios before you trade.
Calculate compound interest from principal, recurring contributions, APY, and time. Visualize principal, interest, and final balance with a local interactive chart.
Use this Loan Calculator / Mortgage Calculator to estimate monthly payment, total interest, and an amortization schedule locally. Enter amount, rate, and term to calculate now with instant charts.
Use this Investment Calculator / ROI Calculator to estimate starting capital, monthly contributions, annual return, and inflation-adjusted results locally. Calculate projected returns with an instant compound interest chart, ROI, and yearly schedule.
Use this APR to APY Calculator to convert between APR and APY locally. Enter a rate, choose compounding frequency, and see the effective interest rate, spread, and frequency comparison instantly.
Use this CPM Calculator and CPC Calculator to estimate ad spend, impressions, clicks, CPM, CPC, and CTR locally. Enter budget and target costs to plan campaign scenarios instantly.
Calculate ROAS, CPA, AOV, and CVR from ad spend, revenue, conversions, and clicks locally. Use target ROAS or target CPA reverse calculation to plan the revenue and orders you need.
Calculation Logic
This calculator focuses on product or service gross profit. It does not include taxes, ads, payroll, fulfillment, or other operating expenses.
Core formulas:
For example, if cost is 50 and selling price is 100, gross profit is 50. Margin is 50% (50 / 100), but Markup is 100% (50 / 50). Treating a 20% markup as a 20% margin is a common reason new sellers underprice products.
FAQ
What is the difference between Margin and Markup?
Margin shows how much of revenue is profit, using selling price as the base. Markup shows how much you added on top of cost, using cost as the base. Margin is usually below 100%, while Markup can be much higher.
How do I price a product to get a 20% margin?
Many beginners multiply cost by 1.2, but that gives a 20% markup, not a 20% margin. The correct reverse formula is Price = Cost / (1 - 0.2). Enter cost and 20% Margin in the calculator to infer the selling price.
Does this calculator show Net Profit?
No. This tool calculates Gross Profit and product-level Margin. Net profit also requires taxes, ads, payroll, fulfillment, payment fees, and other operating costs.
Is a 20% profit margin good?
It depends on your industry, channel fees, and fulfillment costs. This calculator does not judge whether a margin is good; it shows the selling price and gross profit behind that target so you can compare it with your real costs.
Are my product costs saved on your server?
No. All calculations run locally in your browser. Your costs, prices, and target margins are not uploaded to a server.