Tools/Business Tools/Profit Margin Calculator

Profit Margin & Markup Calculator – Gross Margin, Net Margin & Pricing

Calculate gross margin, net profit margin, and markup percentages online. Enter cost and revenue to analyze gross and net profitability, or reverse-solve for target selling prices.

If this tool isn’t working as expected, please take a screenshot of the error and report the problem here so we can investigate and improve it.

Financial Calculation Disclaimer

Results from this calculator are estimates based on user-supplied numbers for informational and planning purposes only. Actual interest rates, loan terms, taxes, and financial outcomes may vary depending on your institution, jurisdiction, and market conditions. This tool does not constitute professional financial, tax, or investment advice.

How This Tool Works

Margin and markup are frequently confused in business pricing, leading to underpriced goods and unexpected losses. A 50% markup on cost produces a 33.3% gross profit margin, not 50%.

Furthermore, focusing exclusively on gross margin overlooks overhead expenses, payment gateway fees (such as 2.9% + $0.30 per sale), and shipping costs that turn a seemingly profitable product into a net loss. This calculator models both direct unit economics and bottom-line net profitability to compare the assumptions you enter.

Calculate gross profit margin, net profit margin, and markup percentages across four dedicated modes. Enter your cost and revenue to evaluate direct and bottom-line profitability, calculate required selling prices from target margin percentages, or evaluate how markup and margin differ for the exact same transaction.

In-Depth Pricing Guide

Learn how margin and markup differ, how to convert between them, and how to avoid common pricing mistakes in our comprehensive guide:

How to Use Profit Margin Calculator

Select Mode

Choose Gross Margin & Markup, Net Profit Margin with overhead, Target Price, or Margin vs. Markup comparison.

Enter Financial Figures

Input cost of goods, selling price, operating expenses, and optional fees or tax rates.

Analyze Profitability

Review gross profit, net profit, margin percentages, markup, and complete waterfall breakdowns.

Copy or Reset Summary

Copy the full calculation summary with one click or reset inputs to test new pricing scenarios.

Common Workflows

Physical Product Retail Pricing (Cost-Plus to Target Margin)

When setting MSRP for physical inventory, use Target Price mode to compute retail price directly from unit COGS and target gross margin (e.g. $40.00 cost at 35% margin requires $61.54, rather than adding 35% markup to get $54.00), preventing accidental margin compression.

E-Commerce Unit Economics & Gateway Fee Auditing

Model per-item profitability in Net Profit Margin mode by entering product manufacturing costs alongside merchant processing fees (e.g. 2.9% + $0.30 per transaction), shipping overhead, packaging, and corporate tax rates to estimate profit; this is not a cash-flow statement.

Translating Supplier Markup Sheets to Client Proposals

Wholesale vendors and trade suppliers commonly quote markups on cost. Use Margin vs. Markup mode to translate a vendor's 50% markup into a 33.3% gross margin for customer proposals and commercial bid contracts.

Auditing Promotional Discount Limits

Before launching a 15% or 20% promotional discount, test whether your gross margin absorbs the markdown without eroding operating profit or breaching break-even thresholds.

What to expect

  • Four calculation modes: Gross Margin & Markup, Net Profit Margin with operating overhead and taxes, Target Selling Price reverse-solver, and Margin vs. Markup side-by-side comparison.
  • Net profitability analysis: Factors in Cost of Goods Sold (COGS), operational overhead, payment processing fees, shipping, and estimated tax rates with an itemized waterfall breakdown.
  • Target price reverse-solving: Calculates the exact retail price required to achieve a specific gross margin, markup, or net margin percentage.
  • One-click Copy Summary and Reset buttons with multi-currency formatting for USD, EUR, GBP, INR, JPY, CAD, and AUD.

Worked Examples

Retail Product Pricing (Gross Margin & Markup)

Input

Mode: Gross Margin & Markup, Cost: $40.00, Revenue: $60.00

Result

Selling Price: $60.00, Profit: $20.00, Gross Margin: 33.3%, Markup: 50.0%

Gross Profit = $60 − $40 = $20. Gross Margin = ($20 ÷ $60) × 100 = 33.3%. Markup = ($20 ÷ $40) × 100 = 50.0%. Notice that the 50% markup produces only a 33.3% margin on retail revenue.

E-Commerce Unit Economics (Net Profit Margin)

Input

Mode: Net Profit Margin, Revenue: $10,000, COGS: $4,000, Overhead: $2,500, Fees: $350, Tax: 20%

Result

Gross Profit: $6,000 (60.00%), Operating Profit: $3,500 (35.00%), Net Profit: $2,520 (25.20%)

Gross profit of $6,000 is reduced by $2,500 in operating overhead, $350 in gateway and shipping fees, and $630 in estimated taxes, leaving a modeled net profit of $2,520 (25.20% net margin).

Target Price Mode: Reverse-Pricing from Desired Margin

Input

Mode: Target Price, Cost: $50.00, Target Gross Margin: 40%

Result

Recommended Selling Price: $83.33, Profit: $33.33, Equivalent Markup: 66.67%

Price = Cost ÷ (1 − Margin) = $50 ÷ (1 − 0.40) = $50 ÷ 0.60 = $83.33. Applying $50 × 1.40 would incorrectly yield $70.00 (a 40% markup), producing only a 28.57% gross margin.

Where It Helps

Setting Retail Prices from Target Profit Margins

Reverse-solve for the exact retail selling price needed to hit your gross or net profit margin targets without manual algebra.

E-Commerce Unit Economics & Fee Planning

Evaluate modeled profitability after factoring in production costs, merchant gateway cuts (e.g. 2.9% + $0.30), packaging, and shipping.

Wholesale-to-Retail Markup Conversions

Convert standard manufacturer markup recommendations into retail gross margins to ensure wholesale pricing models remain sustainable.

Common Mistakes

Problem

Confusing Markup Percentage with Profit Margin Percentage

Solution

A 50% markup on cost establishes a 33.3% gross margin on revenue, not 50%. Setting prices using markup when contracts or budgets require a margin leads to severe underpricing.

Problem

Evaluating Only Gross Margin While Overlooking Operating Costs

Solution

A healthy 60% gross profit margin can rapidly turn into a net loss once software subscriptions, advertising, merchant processing fees, and fulfillment expenses are deducted.

Problem

Adding Target Margin Directly to Base Cost

Solution

Calculating Price = Cost × (1 + Margin%) produces a markup price, not a margin price. The correct formula is Price = Cost ÷ (1 − Margin%).

Problem

Overlooking Payment Processor and Transaction Fees

Solution

Payment gateways charge percentage plus fixed transaction fees per sale. On low-ticket items, fixed transaction fees can compress margins significantly.

Helpful Tips

Price for Net Profitability, Not Just Gross Margin

Enter all amounts for the same unit or period. For example, convert percentage processing fees into a currency total before entering Other Fees; do not combine one item's cost with monthly revenue.

Convert Margins to Markups for Purchasing and Quotes

When quoting retail clients or purchasing inventory, translate target margins into markup multipliers so cost updates adjust pricing accurately.

Build In a Buffer for Discounts and Returns

If you plan to run 15% promotional sales, ensure your base price maintains acceptable margins after promotional discounts and return rates are applied.

Export and Save Scenarios for Spreadsheets

Use the Copy Summary button to save calculations directly to client proposals, product master sheets, or inventory databases.

Scope & Limitations

Single-Product or Aggregate Scenario Modeling

This calculator analyzes unit economics and aggregate revenue batches; it does not calculate inventory cost-flow methods such as FIFO, LIFO, or weighted-average costing.

Flat Tax Rate Assumption

The optional flat rate applies to positive modeled profit after entered expenses; losses receive no tax credit. This is not a tax calculation for a jurisdiction. Fees are a money total, not an automatic percentage-plus-fixed-fee formula.

Informational Planning Tool

Calculations provide planning estimates based on user-supplied numbers; they do not constitute formal certified public accounting or tax advice.

Comparison

Gross Margin vs. Net Margin vs. Markup

Understanding the distinction between direct product margin, bottom-line profitability, and cost-based markup.

Gross Margin & MarkupNet Profit Margin
Formula Basis(Revenue − COGS) ÷ Revenue(Revenue − All Expenses) ÷ Revenue
Costs IncludedDirect materials and labor (COGS) onlyCOGS, overhead, marketing, fees, and taxes
Primary UseIndividual product pricing and wholesale quotesOverall business viability and take-home income
Typical MagnitudeAt least as high as net margin with this model's nonnegative expensesEqual to gross margin if extra expenses and tax are zero; lower otherwise

Quick Reference

Essential Pricing & Profit Formulas

Core mathematical equations for calculating gross margin, markup, net margin, and reverse-solving target selling prices.

Metric / GoalMathematical FormulaCalculation Purpose & Notes
Gross Profit ($)Revenue − Cost of Goods Sold (COGS)Direct dollar profit before operating expenses and overhead
Gross Margin (%)[(Revenue − COGS) ÷ Revenue] × 100Profit as a percentage of selling price; capped below 100%
Markup on Cost (%)[(Revenue − COGS) ÷ COGS] × 100Profit as a percentage of cost; always higher than margin % for positive profit
Target Price (Gross Margin)Cost ÷ (1 − Target Margin%)Reverse-solves required retail price from cost and desired margin percentage
Target Price (Markup)Cost × (1 + Markup%)Forward cost-plus formula applying markup directly to base cost
Net Profit Margin (%)[(Revenue − All Expenses) ÷ Revenue] × 100Bottom-line profitability after COGS, operating overhead, processing fees, and taxes
Target Price (Net Margin)(COGS + Opex) ÷ [1 − (Target Net Margin% ÷ (1 − Tax%))]Reverse-solves selling price needed to hit net profit target with fixed overhead and flat tax

Margin to Markup Conversion Quick Reference

Lookup table showing the exact markup percentage required to achieve common target gross profit margins.

Target Gross Margin %Target Gross Margin %Required Markup on Cost %
10% Margin10.0% of selling price11.1% markup on cost
15% Margin15.0% of selling price17.6% markup on cost
20% Margin20.0% of selling price25.0% markup on cost
25% Margin25.0% of selling price33.3% markup on cost
30% Margin30.0% of selling price42.9% markup on cost
33.3% Margin33.3% of selling price50.0% markup on cost
40% Margin40.0% of selling price66.7% markup on cost
50% Margin50.0% of selling price100.0% markup on cost
60% Margin60.0% of selling price150.0% markup on cost
75% Margin75.0% of selling price300.0% markup on cost

Frequently Asked Questions

The core distinction between profit margin and markup lies in the denominator: margin measures profit relative to selling price, while markup measures profit relative to cost. Because cost is lower than selling price in profitable businesses, markup percentage is always higher than margin percentage for the same dollar profit. If you want a 30% gross margin, you must apply about a 42.9% markup to your cost.

What is the difference between profit margin and markup?

Profit margin is profit expressed as a percentage of the selling price (Revenue), while markup is profit expressed as a percentage of the cost of goods (Cost). For example, if an item costs $60 to produce and sells for $100, the profit is $40. Gross margin is ($40 ÷ $100) × 100 = 40%, whereas markup is ($40 ÷ $60) × 100 = 66.7%. Because cost is smaller than selling price for profitable goods, markup percentage is always higher than margin percentage for the same transaction.

What is gross profit margin versus net profit margin?

Gross profit margin evaluates direct product profitability by subtracting only Cost of Goods Sold (COGS) from revenue: Gross Margin % = [(Revenue − COGS) ÷ Revenue] × 100. Net profit margin measures total bottom-line profitability after subtracting all operational expenses, payroll, advertising, software, shipping, platform fees, and income taxes: Net Margin % = (Net Income ÷ Revenue) × 100. This calculator provides both a Gross Margin & Markup mode and a complete Net Profit Margin mode with an itemized waterfall breakdown.

How do I calculate the selling price from a target profit margin?

To find the selling price required for a target profit margin, use the formula: Selling Price = Cost ÷ (1 − Target Margin in decimal form). For example, if your product costs $40 and you require a 35% gross profit margin, divide $40 by (1 − 0.35 = 0.65) to get a selling price of $61.54. A common mistake is multiplying cost by 1.35, which yields $54.00 (a 35% markup, producing only a 25.9% margin). The Target Price mode in this calculator computes this reverse-pricing formula automatically.

How do I calculate markup percentage from cost and selling price?

Markup % = [(Selling Price − Cost) ÷ Cost] × 100. For instance, if an item costs $50 and sells for $75, the dollar profit is $25. Markup is ($25 ÷ $50) × 100 = 50%. To set a retail price using a known markup, multiply Cost by (1 + Markup in decimal): $50 × (1 + 0.50) = $75. Markup mode and the Target Price mode both perform these forward and reverse calculations.

Why is a 50% markup not a 50% profit margin?

A 50% markup on a $100 cost establishes a $150 retail price ($50 profit). When you calculate margin on that $150 price, $50 profit divided by $150 revenue equals 33.3% margin, not 50%. To achieve a true 50% margin on a $100 cost, the item must sell for $200 (a 100% markup). The Margin vs. Markup comparison mode in this calculator displays both cases side-by-side so pricing models avoid accidental margin compression.

How do operating overhead and payment gateway fees affect net profit?

Enter fee and shipping amounts for the same unit or period as revenue and costs. The Other Fees field accepts a currency total; it does not calculate a processor's percentage-plus-fixed fee. Use your actual provider charges. The result is a model, not take-home pay or a tax return.

What calculation modes does this calculator provide?

The calculator includes four dedicated modes: (1) Gross Margin & Markup (analyzes revenue and cost of goods), (2) Net Profit Margin (incorporates operating expenses, payment/shipping fees, and tax rates with a visual waterfall breakdown), (3) Target Price (solves for required retail price given a desired gross margin, markup, or net margin), and (4) Margin vs. Markup Comparison (evaluates how the same percentage alters pricing when applied to cost versus selling price).

Can I copy the calculation results or change currency?

Yes. Click the 'Copy Summary' button at the bottom of the calculator to copy a clean text breakdown of your inputs, profit margins, markups, and net profit figures to your clipboard. You can also select your preferred currency symbol ($, €, £, ₹, ¥, CAD, AUD, or generic) using the currency dropdown.

What is considered a good profit margin for small businesses and e-commerce?

There is no universal good margin. Compare like-for-like definitions, periods and businesses using relevant financial statements. This calculator supplies arithmetic and does not validate a target against an industry benchmark.

Get more tools like this

Leave your email so we can prioritize similar tools and updates.