Business calculator

Profit Margin Calculator

Calculate gross profit, gross margin, and markup from sales revenue and direct cost.

FreeNo signupReviewed September 7, 2026
Estimated result
Gross profit$3,500.00
Gross margin35%
Markup53.85%
Related guide

Small-Business Accounting Software: How to Choose

Compare accounting tools by workflow, controls, reporting, integrations, and total operating fit instead of one headline feature.

Read the guide →

What this calculator measures

Profit margin shows how much of sales revenue remains after the cost included in the calculation. In this gross-margin version, the cost should represent direct costs such as inventory, materials, production labor, or service delivery. Rent, marketing, administration, interest, and tax normally belong in a net-profit analysis instead.

Margin and markup describe the same profit dollars from different perspectives. Margin divides profit by revenue, while markup divides profit by cost. Keeping those denominators separate prevents a common pricing error: applying a target margin as though it were a markup percentage.

Common use cases

Use this model when the inputs describe the same decision, period and customer or product scope.

  • Compare the profitability of a product, service package or sales period after direct cost.
  • Test the effect of a price change or cost increase before updating a quote or price list.
  • Separate gross profit and margin from overhead, tax and cash-flow questions that need a wider model.

Formula

Profit = Revenue − Direct cost; Margin = Profit ÷ Revenue × 100

Use gross margin to see how much of each sales dollar remains after direct costs.

Formula breakdown

  • Use net revenue and direct cost from the same period.
  • Margin uses revenue as the denominator; markup uses cost.

Worked example

If revenue is $10,000 and direct cost is $6,500, gross profit is $3,500. Gross margin is $3,500 divided by $10,000, or 35%. Markup is $3,500 divided by $6,500, or about 53.85%. A business targeting a 35% gross margin therefore needs a markup greater than 35% on this cost base.

Scenario comparison

$100,000 revenue and $65,000 direct cost gives $35,000 gross profit and a 35% margin.

If direct cost rises to $72,000 with revenue unchanged, margin falls to 28%.

How to interpret the result

A positive margin does not automatically mean the business is profitable overall. Gross profit must still cover operating expenses and other obligations. Compare gross margin over consistent periods and use the same definition of direct cost each time.

When testing price changes, also test volume and cost assumptions. A higher price can improve unit margin but may reduce sales, while a lower price may not produce enough additional volume to protect total gross profit.

What a good result looks like

A useful margin leaves enough gross profit to cover operating expenses, financing, taxes and the required return.

Compare the same business over time and comparable products rather than relying on one universal benchmark.

Common mistakes

  • Using cost as the denominator when you mean margin.
  • Mixing revenue and cost from different periods or treating discounts and returns inconsistently.

When this metric can mislead you

A strong gross margin can coexist with an overall loss when operating expenses are high.

An average margin can hide loss-making products, customers or channels.

How to use the result in a decision

Use margin to test pricing, supplier-cost changes, discounts and product mix.

Run base, downside and upside cases before committing to a price or purchasing decision.

Assumptions and limitations

  • Revenue and direct cost cover the same period or units.
  • Returns, discounts, and rebates are reflected in net revenue where relevant.
  • Direct cost is defined consistently between scenarios.
  • The calculator does not include operating expenses, financing costs, or taxes.

Related business calculators

Continue with closely related tools from the same topic cluster.