Profit Margin Calculator
Calculate profit margin, markup, selling price, cost price, and profit instantly. Free online profit margin calculator for ecommerce, retail, and business โ 100% browser-based.
Profit Margin Calculator
Enter your cost and selling price to instantly calculate profit margin, markup, and profitability. All calculations run locally in your browser.
Calculation Mode
Inputs
What you paid for the product
What you charge the customer
Result
Quick Examples
Calculation Breakdown
Profit Margin Reference
* Benchmarks reflect gross profit margin. Net margin will be lower after operating expenses and taxes.
What Is a Profit Margin Calculator?
A profit margin calculator is a financial tool that instantly computes how much of each sale you actually keep as profit โ expressed as a percentage of the selling price. It answers the core question every product-based business, ecommerce seller, freelancer, and marketer must answer before scaling: for every dollar of revenue, how many cents flow to the bottom line?
Profit margin is built on two numbers โ cost price and selling price โ but the implications reach into every business decision: whether a product is worth stocking, whether a campaign is worth running, whether a price increase will help or hurt, and whether the business can survive a dip in volume. The calculator extends beyond the basic margin formula across five distinct calculation modes: Profit Margin, Markup, Find Selling Price, Find Cost Price, and Revenue & Total Cost.
This tool is designed for ecommerce sellers, retail buyers, startup founders, marketing teams, financial analysts, accountants, and MBA students who need to evaluate unit economics, model pricing scenarios, and interpret profitability โ without a spreadsheet. It supports 12 currencies, exports to CSV and TXT, saves a shareable URL for every calculation, and runs entirely in your browser with no data sent to any server.
How Profit Margin Is Calculated
The foundation of every profit margin calculation is the relationship between cost and revenue. Profit is the raw dollar difference between what you charge and what you spend to deliver the product or service. Profit margin expresses that profit as a fraction of the selling price โ not the cost. This distinction matters enormously: a 50% markup and a 50% margin are not the same number.
Core Formulas
Profit = Selling Price โ Cost Price
Profit Margin (%) = (Profit รท Selling Price) ร 100
Markup (%) = (Profit รท Cost Price) ร 100
Selling Price = Cost รท (1 โ Target Margin %)
Cost Price = Selling Price ร (1 โ Target Margin %)
The calculator supports five modes, each inverting the formula to solve for a different unknown:
- โProfit Margin Mode: Enter cost price and selling price. Returns profit, margin %, markup %, and a performance-level interpretation.
- โMarkup Mode: Same inputs as margin mode โ both metrics are returned simultaneously. Useful when your pricing team thinks in markup but your finance team reports in margin.
- โFind Selling Price: Enter your cost and a target margin percentage. The calculator solves for the selling price that achieves exactly that margin.
- โFind Cost Price: Enter the selling price and target margin. Returns the maximum cost you can incur while hitting your margin goal โ useful for supplier negotiations.
- โRevenue & Total Cost: Enter total revenue and total operating cost for a period. Returns the net profit margin for the entire business or product line.
How to Use the Profit Margin Calculator
Step-by-Step Guide
- 1Choose a Calculation Mode: Select the mode that matches what you already know and what you need to find out. Use Profit Margin when you have both numbers and want to check the margin. Use Find Selling Price when you know your cost and have a target margin. Use Revenue & Total Cost for whole-business profitability.
- 2Enter Your Numbers: Fill in the fields that appear for the selected mode โ cost price, selling price, target margin %, or revenue and total cost. The calculator validates your inputs in real time and flags errors before calculating.
- 3Select a Currency: Choose your currency from 12 options including USD, EUR, GBP, INR, AED, and more. Currency is applied to display only โ no exchange rate conversion is applied, so you can use any unit of value.
- 4Read the Results: Profit, margin %, markup %, selling price, cost price, and a profitability badge update instantly as you type. The badge classifies the margin as Excellent, Good, Average, Low, or Loss with a plain-language interpretation.
- 5Review the Formula Breakdown: Below the results, the step-by-step calculation shows exactly how each number was derived โ useful for double-checking inputs or explaining results to stakeholders.
- 6Export or Share: Copy the result summary to clipboard, export as CSV or TXT, or use the shareable URL to send the exact calculation to a colleague or client with all inputs pre-filled.
Key Features
- โFive calculation modes โ Margin, Markup, Selling Price, Cost Price, Revenue
- โReal-time calculation as you type โ no submit button needed
- โProfitability badge: Excellent / Good / Average / Low / Loss
- โPlain-language interpretation of every result
- โStep-by-step calculation breakdown
- โ12 currency options (USD, EUR, GBP, INR, AED, and more)
- โDecimal precision control (0โ4 decimal places)
- โCopy result or full summary to clipboard
- โExport full report as CSV or TXT
- โShareable URL โ every calculation gets a permanent link
- โCalculation history saved locally (up to 20 entries)
- โ100% browser-based โ no data leaves your device
- โNo signup, no account, no rate limits
Real-World Use Cases
Pricing a New Ecommerce Product
An Amazon seller sources a product for $22 including packaging and FBA fees. They want a 35% profit margin to account for advertising spend and seasonal promotions. Using Find Selling Price mode with a $22 cost and 35% target margin, the calculator instantly returns a required selling price of $33.85. The seller lists at $34.99, achieving a margin of 37.1% โ above their target and competitive with similar listings.
Evaluating a Marketing Campaign's True ROI
A D2C brand runs a paid social campaign that generates $48,000 in revenue at a total cost of goods and ad spend of $31,000. Entering these into Revenue & Total Cost mode returns a 35.4% net margin on the campaign. The marketing team compares this to their 28% baseline margin on organic sales and confirms the campaign is incrementally profitable โ justifying the ad budget renewal.
Retail Buyer Setting Category Margins
A retail buyer manages a home goods category and needs every SKU to hit at least a 45% gross margin. For each new product pitched by suppliers, they enter the wholesale cost and use Find Selling Price mode to calculate the minimum retail price that achieves 45%. Products whose required retail price exceeds the market average for the category are rejected or renegotiated before purchase orders are placed.
Freelancer Setting Consulting Day Rates
A marketing consultant has $3,200 in monthly operating costs. They want a 60% profit margin on their billable work. They enter their target day rate as the selling price and use Find Cost Price mode to calculate the maximum cost basis โ then cross-check this against their actual overhead per billed day. If their overhead is below the allowed cost, their rate is viable. If not, they need to raise the day rate or cut costs.
Startup Founder Modelling Unit Economics
A founder is building a physical product startup and is pitching investors. They model three COGS scenarios โ optimistic, base, and conservative โ using the profit margin calculator at their planned $79 retail price. At $28 COGS (optimistic): 64.6% margin. At $36 COGS (base): 54.4% margin. At $45 COGS (conservative): 43% margin. The shareable URL for each scenario is pasted directly into the investor deck for transparency.
Negotiating Supplier Costs Using Find Cost Price
A wholesale buyer sells a product at $85 and needs to maintain a 40% margin to cover overheads. Using Find Cost Price mode with a $85 selling price and 40% target margin returns a maximum cost of $51. Their current supplier quotes $56 per unit โ $5 over the threshold. Armed with this number, the buyer enters negotiations with a specific ask: reduce unit cost to $50 or below, or they will switch suppliers.
Tips & Best Practices
Pro Tips
- ๐กAlways use margin โ not markup โ when communicating with investors, boards, and financial stakeholders. Markup can be misleading at high percentages: a 200% markup sounds enormous but only translates to a 66.7% margin. Margin is a universally understood metric; markup is an internal pricing lever.
- ๐กPrice from margin targets backward, not from cost plus. Cost-plus pricing ('I'll add 30% to my cost') is intuitive but systematically underprices high-value products. Instead, anchor on the margin your business model requires, then use Find Selling Price to derive the price that achieves it.
- ๐กInclude all variable costs in the cost price โ not just COGS. For ecommerce, cost should include payment processing fees (typically 2โ3%), packaging, per-unit shipping, and platform commissions. For service businesses, include contractor costs and tool subscriptions billed per client. Undercosting leads to margins that look good on paper but don't survive cash flow analysis.
- ๐กRun margin calculations at every price tier when running promotions. A 20% discount on a product with a 30% margin reduces profit by 67% per unit โ not 20%. Promotional pricing that crosses below your variable cost per unit makes every sale worse than making no sale at all.
- ๐กUse the Revenue & Total Cost mode monthly as a financial health check. Divide your total monthly revenue by total monthly costs and track the margin trend over time. A declining trend 3 months in a row is an early warning signal before it becomes a cash flow crisis.
- ๐กCompare your margin against industry benchmarks before concluding it is 'good'. A 15% margin is excellent for a grocery store and catastrophic for a SaaS product. Context is everything โ use the benchmark table below to calibrate your expectations against your sector.
Common Mistakes to Avoid
- โDon't confuse margin and markup when setting prices. A common error: a buyer wants a 50% margin and adds 50% to their cost. A $60 cost + 50% markup = $90 price, which is only a 33.3% margin โ well below the 50% target. Use Find Selling Price mode to avoid this mistake entirely.
- โDon't calculate gross margin and call it profit margin without disclosing the difference. Gross margin excludes operating expenses, interest, and taxes โ it only accounts for direct cost of goods. Net margin includes everything. A business with a 60% gross margin can still be loss-making if operating costs are high. Clearly state which margin you are reporting.
- โDon't set a single margin target across all product lines without segmenting by category. A flagship high-margin product should not cross-subsidise loss-leading products indefinitely. Understand the margin per SKU, per channel, and per customer segment to avoid situations where top-line revenue growth masks profitability erosion.
- โDon't ignore the effect of returns and chargebacks on ecommerce margins. A 10% return rate on a product with a 25% margin can eliminate almost all profit once reverse logistics and restocking costs are factored in. Always model margin at the net shipped unit level, not the gross order level.
- โDon't treat margin as a static number. Input costs change with supplier price increases, shipping rate changes, and currency fluctuations. A margin that was 40% six months ago may now be 32% due to cost inflation. Recalculate whenever key cost inputs change.
Profit Margin Formula Reference
Profit Margin Benchmarks by Industry
| Industry | Typical Gross Margin | Typical Net Margin | Notes |
|---|---|---|---|
| SaaS / Software | 70โ85% | 20โ40% | High gross margins after development costs; net margin depends on CAC and growth spend |
| Digital Products | 80โ95% | 60โ85% | Near-zero COGS drives exceptional gross margins for online courses, ebooks, templates |
| Ecommerce (General) | 40โ60% | 10โ20% | Gross margin healthy; net margin compressed by ads, returns, and logistics |
| Retail / Fashion | 45โ65% | 4โ13% | Strong gross margins but high operating costs thin the net |
| Restaurants / Food | 60โ75% | 3โ9% | Gross margin misleads โ labour and rent are the real margin killers |
| Healthcare / Pharma | 50โ70% | 10โ20% | Varies widely by R&D intensity and whether branded or generic |
| Professional Services | 70โ80% | 20โ35% | Low COGS; labour is primary cost โ margin scales with utilisation |
| Manufacturing | 25โ40% | 5โ15% | Scale and automation drive margin improvement over time |
| Marketing Agencies | 50โ60% | 15โ25% | Gross margin strong; net squeezed by staff costs and software |
| Wholesale / Distribution | 20โ35% | 3โ8% | Thin net margins compensated by volume |
* Benchmarks are general guidelines based on industry averages. Actual margins vary by business model, pricing strategy, scale, and market conditions.
Frequently Asked Questions
What is profit margin and why does it matter?
Profit margin is the percentage of revenue that remains as profit after costs are deducted. It is the single most important metric for measuring whether a business model is financially viable. A high revenue business with thin margins can be less sustainable than a smaller business with strong margins โ because margins determine how much of each sale can be reinvested into growth, absorbed as loss during slow periods, or returned to owners. Without knowing your margin, pricing decisions are guesswork.
What is the difference between profit margin and markup?
Profit margin is expressed as a percentage of the selling price: ((Selling โ Cost) รท Selling) ร 100. Markup is expressed as a percentage of the cost: ((Selling โ Cost) รท Cost) ร 100. For the same transaction, markup is always a larger number than margin. A product that costs $60 and sells for $100 has a 40% margin but a 66.67% markup. Retailers typically price using markup and report using margin โ knowing both is essential to avoid systematic mispricing.
What is a good profit margin for ecommerce?
A healthy gross margin for ecommerce is typically 40โ60% after product cost, packaging, and fulfillment. After advertising, platform fees, returns, and overhead, most ecommerce businesses operate at a 10โ20% net margin. Margins below 15% gross on physical products make it very difficult to run profitable paid advertising. Digital products and subscriptions command significantly higher margins because COGS is near zero.
What is the difference between gross profit margin and net profit margin?
Gross profit margin deducts only the direct cost of goods sold (COGS) from revenue โ the materials, manufacturing, and direct delivery costs. Net profit margin deducts all expenses: COGS plus operating expenses, salaries, rent, marketing, interest, and taxes. Gross margin measures production efficiency. Net margin measures overall business profitability. This calculator primarily computes gross margin; use the Revenue & Total Cost mode with full all-in costs to approximate net margin.
How do I calculate the selling price from a target margin?
Use the formula: Selling Price = Cost Price รท (1 โ Target Margin %). For example, if your cost is $50 and you want a 40% margin: $50 รท (1 โ 0.40) = $50 รท 0.60 = $83.33. The common mistake is to simply multiply cost by (1 + margin%) โ that calculates a markup, not a margin. The Find Selling Price mode in this calculator does the math automatically.
How do I increase my profit margin?
There are four main levers: (1) Raise your selling price โ even a 5% price increase on a 25% margin product improves profit by 20%. (2) Reduce cost of goods through supplier negotiations, bulk ordering, or product reformulation. (3) Eliminate low-margin or negative-margin products from your range. (4) Increase average order value through upsells and bundles โ spreading fixed costs over more revenue without increasing COGS proportionally. Price increases are generally the fastest and most impactful lever.
What is the margin on a 50% markup?
A 50% markup equals a 33.33% margin. If a product costs $60 and you mark it up 50%, the selling price is $90. Profit is $30. Margin = $30 รท $90 = 33.33%. This is one of the most common sources of confusion in retail pricing. The relationship between markup and margin is not linear โ as markup increases, margin increases but at a diminishing rate. A 100% markup = 50% margin. A 200% markup = 66.67% margin.
Can this calculator be used for service businesses?
Yes. For pure service businesses, set cost to zero or to your direct labour and tool costs per engagement. Your selling price is your fee. For agencies and consultancies that use Margin mode, cost should include the fully loaded cost of the team members working on the account โ salary, benefits, and overhead allocated per hour or project. For Revenue & Total Cost mode, enter your total monthly billings as revenue and total monthly operating costs as total cost.
What is the margin on marketing campaigns and promotional pricing?
Promotional pricing dramatically compresses margin. A product with a 30% regular margin sold at a 20% discount has a net margin of only 12.5% โ less than half the regular margin. This is because the discount comes entirely from your profit, not from a reduction in cost. Before running any promotion, calculate the margin at the promotional price and compare the incremental volume needed to maintain the same total profit as selling fewer units at full price. Often, the break-even volume increase required to justify a discount is unrealistically high.
Is my data private when using this calculator?
Yes. All calculations run entirely in your browser using JavaScript. Your cost prices, selling prices, revenue figures, and margin targets are never transmitted to any server, stored in any database, or accessible to anyone other than you. The calculation history feature uses your browser's localStorage โ data is local to your device and never leaves it. This makes the tool safe for confidential pricing analysis and financial planning.
Who Uses This Calculator?
Ecommerce Sellers
Price products correctly on Shopify, Amazon, and WooCommerce by calculating the exact margin after platform fees, shipping, and payment processing โ before listing.
Retail Buyers
Set pricing strategies across product categories to ensure every SKU contributes positively to store profitability, with per-product margin visibility.
Accountants & CFOs
Quickly compute gross and net margins for client reporting, management accounts, board packs, and investment memoranda.
Startup Founders
Model unit economics at multiple price points and COGS scenarios to validate the business is viable before scaling โ and to communicate clearly to investors.
Marketing Teams
Evaluate the true profitability of promotional campaigns by calculating the margin at discounted prices before approving spend โ and comparing post-campaign net margin to baseline.
Students & Educators
Practice financial modelling, pricing strategy, and unit economics with a real-time calculator that shows step-by-step formula workings โ ideal for MBA and business courses.
Related Tools
Revenue Growth Calculator
Calculate revenue growth percentage instantly. Compare previous and current revenue, measure business performance, and export professional reports โ free and 100% browser-based.
ROI Calculator
Calculate ROI instantly using the return on investment formula. Free online ROI calculator for marketing campaigns, Google Ads, SEO, email, and business investments.
Cost Per Acquisition (CPA) Calculator
Calculate Cost Per Acquisition (CPA) instantly from marketing spend and total conversions. Free online CPA calculator for Google Ads, Facebook Ads, PPC campaigns, and digital marketing.
Customer Lifetime Value (CLV) Calculator
Calculate Customer Lifetime Value (CLV) instantly using multiple formulas โ Basic, Margin-Adjusted, Subscription, and SaaS. Free online CLV calculator for ecommerce, SaaS, and digital marketing.
Investment Return (ROI) Calculator
Calculate investment gain or loss percentage instantly. Track stock, crypto, and property returns with real-time results.
Break Even Calculator
Calculate your break-even point instantly. Find break-even units, revenue, contribution margin, margin of safety, and target profit sales โ free and 100% browser-based.