Margins & Profitability

Profit Margin & Markup Calculator

Calculate profit margin, gross margin, markup and gross profit, or work backward to find the selling price or cost needed to reach a target margin or markup.

Enter your values

Choose what you want to calculate. The required inputs change automatically.

$
$

Margin measures profit as a percentage of revenue. Enter revenue and cost to calculate the result.

Tool description

Calculates margins, markup, profit and reverse pricing relationships from revenue and cost data.

Tool type

Business profitability and pricing calculator.

Core logic

Profit, margin and markup equations with reverse solving for selling price or cost.

Purpose

Compare pricing profitability and determine the price or cost needed to meet a target percentage.

Calculation methodology

Define → Validate → Normalize → Calculate → Check → Present

Formula & methodology

How Profit Margin & Markup Are Calculated

Profit margin and markup both compare profit with another financial value, but they use different denominators. Margin compares profit with revenue, while markup compares profit with cost. The same revenue and cost can therefore produce different margin and markup percentages.

Profit margin

Denominator: revenue. Margin asks what percentage of the selling price remains as profit after the specified cost is subtracted.

Markup

Denominator: cost. Markup asks how large the profit is compared with the underlying cost.

Governing equations

These equations define the relationships used by the calculator and its reverse-solving modes.

Profit P = R − C

Profit equals revenue minus cost.

Profit / gross margin M = (P ÷ R) × 100

Profit expressed as a percentage of revenue.

Markup U = (P ÷ C) × 100

Profit expressed as a percentage of cost.

Cost as % of revenue C% = (C ÷ R) × 100

The proportion of revenue represented by the specified cost.

Required price — target margin R = C ÷ (1 − m)

Here, target margin m is entered as a decimal. For example, 40% becomes 0.40.

Required price — target markup R = C × (1 + u)

Here, target markup u is entered as a decimal. For example, 50% becomes 0.50.

Required cost — target margin C = R × (1 − m)

Solves for the cost compatible with a known selling price and target margin.

Required cost — target markup C = R ÷ (1 + u)

Solves for cost when selling price and target markup are known.

Margin and markup difference Difference = U − M

The calculator reports this as a difference in percentage points, not as another relative percentage.

Converting directly between margin and markup

Markup from margin u = m ÷ (1 − m)
Margin from markup m = u ÷ (1 + u)

In these conversion equations, m and u are decimal rates. A 40% margin is m = 0.40, which converts to a markup of 0.40 ÷ 0.60 = 0.666666… = 66.67%.

Variables and units

Monetary values must use the same currency and accounting basis before they are compared.

Variable definitions used by the calculator
Symbol Variable Meaning Unit
R Revenue / selling price Amount received from the sale or the selling price used in the calculation. Selected currency
C Cost / COGS Cost associated with the item, product or sales amount being evaluated. Same currency as revenue
P Profit / gross profit Difference between revenue and the specified cost. Selected currency
M Margin percentage Profit divided by revenue and converted to a percentage. %
U Markup percentage Profit divided by cost and converted to a percentage. %
m Margin rate Margin expressed as a decimal for reverse calculations. Decimal ratio
u Markup rate Markup expressed as a decimal for reverse calculations. Decimal ratio
C% Cost share of revenue Cost divided by revenue. %

Calculation methodology

Each mode follows the same Calculation Portal calculation pipeline.

01 Define

Identify the selected calculation and known values.

02 Validate

Check amounts, denominators and percentage domains.

03 Normalize

Convert percentages to decimal rates where required.

04 Calculate

Apply the appropriate forward or reverse equation.

05 Check

Confirm finite values and reconstruct the relationship.

06 Present

Round only the displayed monetary and percentage values.

Units and normalization

This calculator does not require physical unit conversion, but percentages and monetary values still need consistent normalization.

Percentage → decimal decimal rate = percentage ÷ 100

Example: 40% becomes 0.40 before a reverse margin equation is evaluated.

Monetary consistency currency(R) = currency(C)

Revenue and cost must represent the same currency before subtraction or division.

Period consistency period(R) = period(C)

A monthly cost should be compared with monthly revenue, annual cost with annual revenue, or equivalent values.

How entered values are interpreted
Entered value Normalized value Calculation unit Displayed output
$250 revenue 250 USD monetary amount $250.00
$150 cost 150 USD monetary amount $150.00
40% target margin 0.40 Decimal ratio 40.00%
50% target markup 0.50 Decimal ratio 50.00%

How to calculate manually

Select the relationship that matches the value you are trying to find.

Calculate profit margin from revenue and cost
  1. Write down revenue and cost for the same sale or period.
  2. Subtract cost from revenue to find profit.
  3. Divide profit by revenue.
  4. Multiply the decimal result by 100.
P = R − C
M = (P ÷ R) × 100
Calculate markup from selling price and cost
  1. Subtract cost from selling price to find profit.
  2. Divide profit by cost rather than selling price.
  3. Multiply by 100 to express the result as markup.
P = R − C
U = (P ÷ C) × 100
Find selling price from a target margin
  1. Convert the target margin percentage to a decimal.
  2. Subtract that decimal margin from 1.
  3. Divide cost by the remaining proportion.
  4. Check the answer by recalculating margin from the resulting price.
m = Target margin % ÷ 100
R = C ÷ (1 − m)
Find selling price from a target markup
  1. Convert the target markup percentage to a decimal.
  2. Add the decimal markup to 1.
  3. Multiply cost by that value.
  4. Check the answer by dividing resulting profit by cost.
u = Target markup % ÷ 100
R = C × (1 + u)
Find cost from selling price and target margin
  1. Convert target margin to a decimal.
  2. Subtract the decimal margin from 1.
  3. Multiply selling price by the remaining proportion.
C = R × (1 − m)
Find cost from selling price and target markup
  1. Convert target markup to a decimal.
  2. Add the markup rate to 1.
  3. Divide selling price by that value.
C = R ÷ (1 + u)

Calculation breakdown

The default calculator values are $250.00 revenue and $150.00 cost. The calculation below shows why this produces a 40.00% margin but a 66.67% markup.

$250 revenue and $150 cost

Forward calculation: profit → margin → markup → cost share.

1. Input values
Revenue = $250.00; Cost = $150.00
2. Normalized values
R = 250; C = 150
3. Profit formula
P = R − C
4. Substitution
P = 250 − 150
5. Profit
P = 100 → $100.00
6. Margin substitution
M = (100 ÷ 250) × 100
Raw margin
M = 40
Displayed margin
40.00%
Markup substitution
U = (100 ÷ 150) × 100
Raw markup
U = 66.66666666666667...
Displayed markup
66.67%
Cost share
(150 ÷ 250) × 100 = 60 → 60.00%
Difference
66.66666666666667... − 40 = 26.66666666666667... → 26.67 percentage points

Reverse-solving a target margin

A target margin cannot be added directly to cost. Because margin is measured against the final selling price, the selling price itself appears in the underlying relationship.

$150 cost with a 40% target margin

Solve for the selling price rather than assuming a 40% markup.

Input values
Cost = $150.00; Target margin = 40%
Normalize
m = 40 ÷ 100 = 0.40
Formula
R = C ÷ (1 − m)
Substitution
R = 150 ÷ (1 − 0.40)
Intermediate
1 − 0.40 = 0.60
Raw result
150 ÷ 0.60 = 250
Display result
Required selling price = $250.00
Check
($250 − $150) ÷ $250 × 100 = 40%
Why this matters: adding 40% to a $150 cost gives $210, but that represents a 40% markup, not a 40% margin. A 40% margin requires a $250 selling price.

Raw results and display precision

Calculation precision is kept separate from formatting so rounded values do not distort later calculations.

Calculate at full precision

Intermediate percentage and reverse-solving values remain unrounded while calculations are being performed.

Round for display

Percentage results are normally displayed to two decimal places and monetary amounts to the currency’s normal display precision.

Check reconstructed values

Reverse calculations can be checked by substituting the calculated price or cost back into the original equation.

For example, markup in the default calculation is retained as 66.66666666666667…% internally. The interface may display 66.67%, but subsequent calculations should not use 66.67% as though it were the exact underlying result.

Worked example & analysis

Profit Margin & Markup in Practice

See how the same revenue and cost produce different margin and markup percentages, compare alternative cost scenarios, and convert directly between target margin and target markup.

Case example: pricing a product

A small U.S. retailer sells a product for $250. The product’s specified cost is $150. The owner wants to check gross profit, gross margin and markup without confusing the two percentage measures.

Values entered

Selling price $250.00
Cost $150.00
Currency USD

Profit is first calculated as $250 − $150 = $100. Margin then compares that $100 profit with the $250 selling price. Markup compares the same $100 profit with the $150 cost.

Worked calculation

Intermediate values remain unrounded. Rounding is applied only when the result is presented.

Calculation for a $250 selling price and $150 cost
Step Formula / substitution Raw result Displayed result
Profit P = 250 − 150 100 $100.00
Margin (100 ÷ 250) × 100 40 40.00%
Markup (100 ÷ 150) × 100 66.66666666666667… 66.67%
Cost share (150 ÷ 250) × 100 60 60.00%
Markup − margin 66.66666666666667... − 40 26.66666666666667… 26.67 percentage points

Compare three cost scenarios

The selling price remains fixed at $250. Only cost changes. This isolates how cost affects profit, margin and markup.

Lower cost

Scenario A — $100 cost

Selling price $250.00
Cost $100.00
Profit $150.00
Margin 60.00%
Markup 150.00%

Lower cost increases both profit and margin. Markup rises even more because its denominator is the smaller $100 cost.

Base example

Scenario B — $150 cost

Selling price $250.00
Cost $150.00
Profit $100.00
Margin 40.00%
Markup 66.67%

This is the worked example used throughout the calculator methodology.

Higher cost

Scenario C — $200 cost

Selling price $250.00
Cost $200.00
Profit $50.00
Margin 20.00%
Markup 25.00%

With selling price unchanged, the higher cost reduces profit and both profitability percentages.

Scenario limitation: this comparison changes cost while holding selling price fixed. It shows the mathematical effect of that change; it does not predict customer demand, taxes, operating expenses or net profitability.

Margin ↔ Markup Target Converter

Convert a target margin into its equivalent markup, or a target markup into its equivalent margin. This is useful when pricing policies use one percentage but suppliers, teams or reports use the other.

Enter the percentage as 40 for 40%, not 0.40.
Equivalent percentage
66.67%
Equivalent markup
Entered percentage 40.00% margin
Percentage-point difference 26.67 points
Calculation u = 0.40 ÷ (1 − 0.40) = 0.6666666666666667

Check: 66.66666666666667% markup converts back to 40% margin before display rounding.

Tool description

Converts equivalent margin and markup percentages.

Tool type

Supporting financial conversion tool.

Core logic

u = m ÷ (1 − m) or m = u ÷ (1 + u).

Purpose

Prevents target margin and markup from being treated as interchangeable percentages.

Interpretation & reference

Understanding Profit Margin & Markup Results

Margin, markup and gross profit describe related parts of a pricing calculation, but they answer different questions. Understanding the denominator, cost definition and calculation scope is essential before using the result for pricing or profitability decisions.

How to interpret the results

Separate the mathematical result from the business conclusion you may draw from it.

Profit / gross profit

The calculation says Profit is the amount remaining after the specified cost is subtracted from revenue.
This may mean A positive result shows that revenue exceeds the cost included in this calculation. It does not necessarily mean the business has positive net income.

Profit / gross margin

The calculation says Margin is profit divided by revenue. A 40% margin means 40% of the revenue remains after the specified cost.
This may mean The remaining 60% of revenue is represented by the cost used in this calculation. Whether 40% is attractive depends on the business, product and expenses excluded from the calculation.

Markup

The calculation says Markup measures profit relative to cost. A 50% markup means profit equals 50% of the underlying cost.
This may mean A $100 cost with a 50% markup produces a $150 selling price. The resulting margin is 33.33%, not 50%.

Target selling price

The calculation says The reverse equation finds the price mathematically required to produce the entered target margin or markup.
This may mean The result can provide a pricing reference, but it does not establish whether customers will accept that price or whether it covers expenses omitted from the cost input.

Calculation assumptions

Results are meaningful only when the inputs represent comparable financial values.

Same currency

Revenue and cost are assumed to use the same currency. The currency selector changes presentation; it does not perform foreign-exchange conversion.

Same basis

Revenue and cost should refer to the same item, transaction, quantity or reporting period.

Defined cost

The calculator treats the entered cost as the complete cost for the relationship being measured. Costs not entered are not inferred.

Percentage input

Target percentages are entered in percentage form. Enter 40 for 40%; the calculator normalizes that input to 0.40 where an equation requires a decimal rate.

No automatic taxes

Sales tax, VAT and similar amounts are not automatically added or removed. Inputs should use the accounting basis appropriate to the calculation.

Static calculation

The formulas evaluate the values entered. They do not model future changes in price, volume, supplier costs or customer demand.

Limitations

A mathematically correct margin calculation can still be misleading if the financial scope of the inputs is unclear.

Gross profit is not automatically net profit

If cost represents cost of goods sold, the resulting gross profit does not deduct operating expenses, interest, taxes or other costs outside that definition.

Margin does not measure sales volume

A higher margin per sale does not by itself indicate higher total profit. Total profitability can also depend on the number of units sold and other costs.

Target price is not a market forecast

A required selling price is the price that satisfies the selected equation. It does not predict willingness to pay, competitor pricing or demand.

Cost definitions can differ

Product cost, COGS, variable cost and fully allocated cost are not necessarily identical. Changing the cost definition changes the resulting profit and percentage.

Common margin and markup mistakes

Most calculation errors come from using the wrong denominator or mixing financial values that do not share the same basis.

1

Treating margin and markup as the same percentage

Margin divides profit by revenue. Markup divides profit by cost. With $250 revenue and $150 cost, margin is 40% while markup is 66.67%.

Margin = P ÷ R; Markup = P ÷ C
2

Adding a target margin directly to cost

Adding 40% to cost creates a 40% markup. To achieve a 40% margin, cost must instead be divided by 1 − 0.40.

Required price = Cost ÷ (1 − margin)
3

Mixing monthly and annual values

Comparing monthly revenue with annual cost produces a percentage with no useful common period. Normalize both values to the same period first.

4

Mixing currencies

A dollar selling price cannot be compared directly with a euro cost. Convert monetary values to a common currency before calculating.

5

Using 0.40 when the field expects 40%

If the input field is percentage-based, enter 40 for 40%. The calculator handles the conversion to 0.40 internally.

6

Rounding too early

Rounding an intermediate markup, margin or price before using it in another calculation can create avoidable differences. Preserve the raw value until display.

7

Calling every remainder “net profit”

Revenue minus product cost may be gross profit rather than net profit. The label depends on which costs have actually been deducted.

Margin and markup reference tables

Equivalent percentages can help when translating between margin-based and markup-based pricing rules.

Equivalent margin and markup percentages
Margin Equivalent markup Cost as % of revenue Example on $100 cost
10% 11.11% 90% $111.11 selling price
20% 25.00% 80% $125.00 selling price
25% 33.33% 75% $133.33 selling price
30% 42.86% 70% $142.86 selling price
40% 66.67% 60% $166.67 selling price
50% 100.00% 50% $200.00 selling price
60% 150.00% 40% $250.00 selling price
75% 300.00% 25% $400.00 selling price
Quick formula reference
Find Known values Formula Important condition
Profit Revenue, cost P = R − C Values must use the same financial basis.
Margin Profit, revenue M = (P ÷ R) × 100 Revenue cannot be zero.
Markup Profit, cost U = (P ÷ C) × 100 Cost cannot be zero.
Price from margin Cost, target margin R = C ÷ (1 − m) For positive cost in the standard pricing model, target margin must be below 100%.
Price from markup Cost, target markup R = C × (1 + u) Convert the entered percentage to a decimal first.
Cost from margin Price, target margin C = R × (1 − m) Use margin as a decimal rate.
Cost from markup Price, target markup C = R ÷ (1 + u) 1 + u cannot equal zero.
Reference-table values are rounded for readability. For a calculation, use the underlying equation rather than a rounded percentage copied from the table.

Profitability terminology

Similar terms can describe different accounting scopes.

Common terms used with margin and markup calculations
Term Basic meaning Calculation context
Revenue Sales amount used as the top-line value. Denominator for profit margin.
Cost Expense value entered for the item or activity being evaluated. Denominator for markup.
COGS Cost of goods sold. Common cost basis when calculating gross profit and gross margin.
Gross profit Revenue less COGS. Does not by itself represent profit after all business expenses.
Gross margin Gross profit as a percentage of revenue. Uses revenue—not cost—as the denominator.
Markup Profit amount relative to cost. Commonly used when building a selling price from cost.

Why both margin and markup are used

Practical context

Margin and markup describe the same underlying relationship from different reference points. Markup starts with cost and is convenient when constructing a price from that cost. Margin starts with revenue and shows the share of sales remaining after the specified cost. This is why pricing work may use markup while profitability reporting may emphasize margin. The two measures should be converted mathematically rather than treated as equivalent percentages.

Quick interpretation checklist

Ask what the denominator is

Revenue denominator = margin. Cost denominator = markup.

Check what “cost” includes

A result is only as broad as the costs represented by the input.

Keep the result in context

A target price solves the formula; it does not guarantee demand, sales volume or net profitability.