Home › Calculators › Profit Margin Calculator

Profit Margin Calculator

Enter any two of cost, selling price, profit, margin or markup and the rest is solved instantly. Switch to bulk mode to price a whole product list and export it as CSV.

Last updated:

Or just type in any two fields – the last two you edit are used.

Gross profit–
Gross margin–
Markup–
Cost–
Selling price–
Advertisement

Margin ↔ markup converter

MarginMarkupPrice for a $100 costProfit
Advertisement

How to use the Profit Margin Calculator

  1. Type any two values, for example the cost and the selling price. The two fields you edited last are used as inputs and the others are calculated.
  2. Or pick the known values from the Solve from list, such as Cost + Margin % to find the price for a target margin.
  3. Read the results: gross profit, margin and markup, plus the formulas used.
  4. Convert margin and markup with the converter below the results.
  5. For many products, open the Bulk tab, paste one item per line (cost and price, or cost and target margin) and download the table as CSV.

Profit margin and markup formulas

All of the results come from three simple relationships between cost, selling price and profit:

  • Gross profit = selling price − cost
  • Gross margin % = profit ÷ selling price × 100
  • Markup % = profit ÷ cost × 100
  • Price from a target margin = cost ÷ (1 − margin)
  • Price from a markup = cost × (1 + markup)
  • Margin from markup = markup ÷ (1 + markup), and markup from margin = margin ÷ (1 − margin)

Worked example: you buy a lamp for $45 and want a 40% gross margin. The price is 45 ÷ (1 − 0.40) = $75. Your profit is $30, which is 40% of the $75 price and a 66.67% markup on the $45 cost.

Margin vs markup: the most common pricing mistake

Many sellers add their target margin to the cost as if it were a markup. Adding 30% to a $100 cost gives a $130 price, but the margin is only 30 ÷ 130 = 23.1%. To really earn a 30% margin you need to charge 100 ÷ 0.70 = $142.86. The gap grows quickly at higher margins:

Target marginMarkup neededPrice on a $100 costIf you added the margin as markup
20%25%$125.00$120.00 (16.7% margin)
30%42.86%$142.86$130.00 (23.1% margin)
40%66.67%$166.67$140.00 (28.6% margin)
50%100%$200.00$150.00 (33.3% margin)
60%150%$250.00$160.00 (37.5% margin)

Average margin or overall margin?

In bulk mode you get two different margins for the list. The average margin is the simple mean of each row's margin, so a cheap item counts as much as an expensive one. The overall (weighted) margin is total profit divided by total revenue, which is the figure your accounts will show if you sell one of each item. When high-priced items have thin margins, the overall margin is lower than the average, and that is usually the number to plan with.

Keep in mind that gross margin ignores overheads such as rent, wages, shipping, payment fees and advertising. Make sure your gross margin leaves enough room to cover them and still produce a net profit.

Frequently asked questions

What is the difference between margin and markup?

Both compare profit with a base amount. Margin divides profit by the selling price, markup divides profit by the cost. A product that costs $60 and sells for $100 has a $40 profit, a 40% margin and a 66.67% markup. Margin can never reach 100%, but markup can be any size.

How do I calculate the selling price from cost and margin?

Divide the cost by one minus the margin as a decimal. For a $60 cost and a 40% target margin the price is 60 / (1 - 0.40) = $100. Simply adding 40% to the cost gives $84, which is only a 28.6% margin.

How do I convert markup to margin?

Margin = markup / (1 + markup). A 50% markup equals 0.5 / 1.5 = 33.33% margin. To go the other way, markup = margin / (1 - margin), so a 25% margin is a 33.33% markup.

What is a good profit margin?

It depends on the industry. Grocery and fuel retail often run gross margins of 15 to 30%, general retail and restaurants 30 to 60%, and software or digital products 70 to 90%. Compare yourself with businesses in the same sector, and remember gross margin is before overheads like rent and wages.

Is gross margin the same as net profit margin?

No. Gross margin only subtracts the direct cost of the goods sold. Net profit margin also subtracts operating expenses, interest and taxes, so it is always lower. This calculator works out gross margin per product or order.

Why can't the margin be 100% or more?

Margin is profit divided by price, and profit can only equal the price if the cost is zero. A margin over 100% would need a negative cost. Negative margins are possible, though, and mean you are selling below cost.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Discount CalculatorSale price, percent off, stacked discounts and sales tax.VAT CalculatorAdd or remove VAT and sales tax with country rate presets.Percentage CalculatorWork out percentages, increases and decreases.Quote Estimate GeneratorCreate a quote or estimate with line items and tax, then save as PDF.Amazon FBA CalculatorEstimate Amazon FBA fees, profit per unit, margin, ROI and break-even price.Barcode Label Sheet MakerPrint barcode price labels with product name and price on 30, 60 or 80 per sheet layouts.Bonus Pool Allocation CalculatorSplit a bonus pool by salary, target bonus and performance multipliers.Break Even CalculatorFind break-even units and revenue, contribution margin, margin of safety and a cost-volume chart.Receipt MakerFill in a receipt template with items and tax, then print or save PDF.Car Depreciation CalculatorEstimate your car's value over time and its projected resale price.CPM CalculatorSolve CPM, cost, impressions, CTR and CPC for ad campaigns.YouTube Money CalculatorEstimate YouTube earnings per day, month and year from views and RPM by niche.Instagram Engagement Rate CalculatorCalculate Instagram engagement rate by followers or reach and compare it to benchmarks.Dollar Cost Averaging CalculatorSee units bought, average cost, value and profit for regular buys at your own price list.Markup CalculatorFind the selling price from cost and markup, or the markup and margin from cost and price.Unit Price CalculatorCompare up to 4 products by price per ounce, pound, liter or item and find the best deal.Cap Rate CalculatorCalculate a rental property's NOI, cap rate and optional cash-on-cash return.Depreciation CalculatorStraight-line, declining balance, double declining and sum-of-years depreciation schedules.PayPal Fee CalculatorWork out PayPal fees, what you receive, and how much to ask for to get an exact amount.Stripe Fee CalculatorCalculate Stripe fees and payouts, or how much to charge to receive an exact amount.Net Promoter Score CalculatorCalculate NPS from promoter, passive and detractor counts or pasted 0–10 survey scores.CPC CalculatorCalculate cost per click from ad spend and clicks, plus CPM, CTR, CPA and ROAS.P/E Ratio CalculatorPrice-to-earnings ratio, earnings yield and PEG ratio from share price, EPS and growth.WACC CalculatorWeighted average cost of capital from equity, debt, their costs and the tax rate.Payback Period CalculatorPayback and discounted payback period for an investment with even or uneven cash flows.Contribution Margin CalculatorContribution margin per unit, CM ratio, operating profit and break-even point.Customer Acquisition Cost CalculatorCAC from marketing and sales spend, plus LTV:CAC ratio and payback months.Safety Stock CalculatorSafety stock by days of cover, max − average, or service level (Z × σ × √lead time).Dimensional Weight CalculatorDIM weight and billable weight for a box in inches or cm with 139, 166, 5000 or 6000 divisors.RPM CalculatorRevenue per 1,000 views from earnings, estimated earnings from RPM, and views for a goal.Customer Retention Rate CalculatorCustomer retention rate and churn from start, end and new customer counts.Margin to Markup CalculatorConvert gross margin % to markup % and back, with price multiplier and conversion table.Airbnb Income CalculatorShort-term rental net income from nightly rate, occupancy, cleaning, fees and expenses.Golden Ratio CalculatorSplit a length into golden sections, find a from b, and get a φ scale of design sizes.3D Printing Cost CalculatorCost and selling price of a 3D print: filament, power, machine wear, failures and labor.Billable Hours Utilization CalculatorUtilization rate, billable revenue and the hours needed to reach your target.Break Even ROAS CalculatorMargin, break-even ROAS and CPA, and the target ROAS for your profit goal per order.Business Valuation CalculatorValue a business with SDE, EBITDA or revenue multiples you choose: low, mid and high range.Sales Forecast CalculatorProject 12-36 months of revenue from baseline, growth rate, churn and seasonality.70% Rule CalculatorHouse flipping maximum allowable offer: ARV × 70% − repairs, with adjustable % and wholesale fee.Silver Melt Value CalculatorSilver melt value from weight, purity and spot price, with sterling and US coin presets.Startup Cost CalculatorTotal capital to start a business: one-time and monthly costs, runway buffer and contingency.Stop Loss CalculatorFind your stop-loss price from a % or dollar risk, the loss per share and trailing stop levels.TAM SAM SOM CalculatorSize a market top-down or bottom-up: TAM, SAM and SOM in revenue and customers, plus a chart.Tariff CalculatorImport tariff and duty owed, landed cost per unit and the price rise needed to absorb it.Wholesale to Retail Price CalculatorSet wholesale price and MSRP from unit cost and margins, with an optional distributor tier.ARR CalculatorAnnual recurring revenue from MRR or contracts, with an ARR bridge, NRR and GRR.Asset Turnover Ratio CalculatorRevenue ÷ average total assets, plus fixed asset turnover, ROA and a benchmark check.Burn Multiple CalculatorNet burn divided by net new ARR, with a rating from amazing to bad and runway.CPV Calculator (Cost Per View)Cost per view from spend and views, views from a budget, and CPV to CPM conversion.Crypto Liquidation Price CalculatorLiquidation price of a leveraged long or short crypto position with isolated margin.Depreciation Recapture CalculatorTax on selling depreciated property: §1250 gain at up to 25%, §1245 recapture and capital gain.Discount Impact on Profit CalculatorHow many more sales you need after a discount to keep the same profit, from your margin.Email Marketing Metrics CalculatorOpen rate, CTR, click-to-open, bounce, unsubscribe and revenue per email from campaign counts.Enterprise Value CalculatorEV from market cap, debt, preferred, minority interest and cash, plus EV/EBITDA and EV/Sales.Financial Advisor Fee CalculatorSee what a 1% (or tiered) AUM advisor fee costs your portfolio over the years.Forex Margin CalculatorRequired margin for any forex trade from lot size, leverage and price, in your account currency.Founder Equity Split CalculatorWeight idea, time, role, risk and cash to suggest a fair co-founder equity split.Free Shipping Threshold CalculatorFind the minimum order for free shipping that covers its cost, from AOV, shipping and margin.GMROI CalculatorGross margin return on inventory: gross margin ÷ average inventory cost, with turnover.Graham Number CalculatorGraham number √(22.5 × EPS × BVPS), Graham intrinsic value and margin of safety.Impermanent Loss CalculatorImpermanent loss of a 50/50 liquidity pool, LP vs HODL value and the fees needed to break even.Inventory Carrying Cost CalculatorAnnual cost of holding inventory: capital, storage, insurance and obsolescence and the rate.Inventory Valuation Calculator (FIFO/LIFO)Compare ending inventory and COGS under FIFO, LIFO and weighted average from purchases and sales.Invoice Factoring CalculatorAdvance, reserve rebate, factoring fees and effective APR for selling an invoice.Leverage CalculatorPosition size, margin required, effective leverage and leveraged P&L for any market.MACRS Depreciation CalculatorUS tax depreciation schedule with MACRS GDS tables, half-year, mid-quarter or mid-month.Margin Call CalculatorPrice at which a margin call triggers for long or short stock, plus cash needed to meet one.
See all 209 Business & Marketing Calculators →