Business calculator

Profit Margin Calculator

Calculate gross profit, net profit, margin percentages, markup, target selling price, cost breakdown, scenarios, and downloadable XLSX analysis inside the unified Calculator Matters layout.

Updated June 5, 2026No sign-in requiredBusiness & Ecommerce calculator

Enter your numbers

Start simple, then switch to advanced inputs when discounts, refunds, fees, taxes, and operating expenses matter.

Simple profit margin inputs
$

Use total revenue, project value, order value, or product selling price.

$

Use the cost tied to the revenue above.

Profit Breakdown Chart

The chart hides zero-value categories and shows how revenue is absorbed by costs, tax estimate, and profit.

Gross profit: $4,000

Out of total revenue of $10,000, approximately $4,000 remains as net profit after direct costs, operating expenses, and estimated tax.

Margin Size

These labels describe how wide or slim the margin is — not whether it is good. A healthy margin varies enormously by industry, and a real result still depends on cash flow, customer acquisition cost, inventory, taxes, and market conditions. Compare against benchmarks for your own sector.

Gross margin status

Wide margin

40.0%

Operating margin status

Wide margin

40.0%

Net margin status

Wide margin

40.0%

Current margin room

The current assumptions show positive net profit. Keep testing supplier cost, discount, refund, fee, and expense changes before making decisions.

Target Price / Target Margin

Margin and markup are different. Margin measures profit as a percentage of selling price. Markup measures profit as a percentage of cost.

%

Required price

$8,571.43

Target Selling Price = Cost / (1 - Target Margin)

Profit at target price

$2,571.43

Difference from current price

-$1,428.57

Price change required

decrease 14.3%

Scenario Analysis

Test how revenue, costs, operating expenses, discounts, and refunds change profitability.

Recalculates instantly

Conservative case assumptions

%
%
%
%

Optimistic case assumptions

%
%
%
%
ScenarioRevenueTotal costGross profitNet profitNet marginMargin status
Base Case$10,000.00$6,000.00$4,000.00$4,000.0040.0%Wide
Conservative Case$9,000.00$6,300.00$2,700.00$2,700.0030.0%Wide
Optimistic Case$11,000.00$5,820.00$5,180.00$5,180.0047.1%Wide

Unit Economics

Useful for ecommerce orders, product units, customers, service projects, and consulting engagements.

Enter sales volume to calculate revenue per unit, cost per unit, profit per unit, contribution per unit, and units needed to earn a target profit.

Monthly / Annual Profit Planning Table

Translate the current model into single-period, monthly, quarterly, and annual views.

PeriodRevenueDirect costsOperating expensesGross profitOperating profitNet profitGross marginNet margin
Single period$10,000.00$6,000.00$0.00$4,000.00$4,000.00$4,000.0040.0%40.0%
Monthly equivalent$10,000.00$6,000.00$0.00$4,000.00$4,000.00$4,000.0040.0%40.0%
Quarterly equivalent$30,000.00$18,000.00$0.00$12,000.00$12,000.00$12,000.0040.0%40.0%
Annual equivalent$120,000.00$72,000.00$0.00$48,000.00$48,000.00$48,000.0040.0%40.0%

Download XLSX

Export a professional workbook generated from your actual current inputs, results, cost breakdown, target price, scenarios, planning table, assumptions, and disclaimer.

Profit margin inputs

Enter revenue, cost, operating expense, tax, fee, refund, unit, and target-margin assumptions. The calculator updates margin, markup, cost structure, and scenarios from the current inputs.

How to read profit margin

Profit margin shows how much revenue remains after selected costs. Gross margin focuses on direct costs, while net margin includes broader operating assumptions.

Profit margin methodology

Gross profit is revenue minus direct cost.

  • Gross margin divides gross profit by revenue.
  • Net profit subtracts operating expenses, fees, interest, refunds, and estimated taxes from revenue.
  • Net margin divides net profit by revenue.
  • Markup compares profit to cost, while margin compares profit to revenue.
Gross margin = (revenue - direct costs) / revenue Net margin = net profit / revenue Markup = profit / cost Target price = cost / (1 - target margin)

Profit margin example

A business with $10,000 revenue, $6,000 direct cost, $2,000 operating expense, $200 interest, and a 20% tax estimate produces this planning view.

Gross profit

$4,000

Gross margin

40.0%

Net profit

$1,440

Net margin

14.4%

Markup

66.7%

Understanding Profit Margin

Walking revenue down to net profit

Net profit margin is the end of a waterfall, not a single subtraction. Revenue enters at the top, direct costs carve out gross profit, operating expenses and fees take the next slice, interest comes off, and an estimated tax on what is left finally leaves net profit at the bottom.

In the worked example, $10,000 of revenue becomes $4,000 of gross profit, then $1,800 after $2,000 of operating expense and $200 of interest, and $1,440 after a 20% tax estimate. Each subtraction is a separate decision a business actually controls, which is why net margin lands at 14.4% rather than the 40.0% the gross layer suggested.

Finding where margin leaks at each step

The value of the full waterfall is that it localizes the leak. A 40.0% gross margin that ends at a 14.4% net margin tells you the 25.6-point drop happened below the gross line, in operating expense, fees, interest, and tax, not in pricing or cost of goods.

Read the steps in order. If gross profit is healthy but net profit is thin, attack overhead and fees rather than raising prices; if gross profit itself is weak, no amount of operating discipline rescues the bottom line, and the fix belongs further up the waterfall.

Why net margin is the bottom-line health metric

Net margin is the percentage of every revenue dollar that survives all the way through, so it is the figure that scales with the actual business rather than a single product. A 14.4% net margin means roughly 14 cents of each dollar is left to reinvest, distribute, or hold as a buffer.

Because it absorbs overhead, financing, and tax, net margin is the number to track over time and compare against your own history. A rising gross margin paired with a falling net margin is a warning that the cost of running the company is outpacing the cost of making the product.

Margin versus markup, and tax on pre-tax profit

Margin and markup describe the same sale from opposite ends: margin divides profit by revenue, markup divides the identical profit by cost. The $4,000 gross profit on $10,000 revenue is a 40.0% margin but a 66.7% markup, so pricing with a markup percentage while reasoning in margin terms quietly underprices every order.

One more distinction the waterfall makes explicit: tax applies to pre-tax profit, not to revenue. The 20% in the example is charged on the $1,800 left after operating costs and interest, producing $360 of tax, not 20% of the $10,000 top line. Applying a tax rate to revenue overstates the bill and distorts the net margin.

Common Uses

  • Check whether price covers direct costs, overhead, fees, and taxes.
  • Compare product, project, ecommerce, and service margin scenarios.
  • Estimate a target selling price from a target margin.

Limitations and Assumptions

  • Real profit can differ because of accounting method, timing, inventory adjustments, taxes, refunds, chargebacks, labor, and supplier changes.
  • The workbook is a planning export, not accounting software or a tax filing record.
  • Margin targets should be reviewed against market demand, cash flow, and professional advice where needed.

Frequently Asked Questions

What is a profit margin calculator?

A profit margin calculator estimates how much profit remains after costs and expresses that profit as a percentage of revenue.

How do I calculate profit margin?

Subtract costs from revenue to get profit, then divide profit by revenue and multiply by 100.

What is the difference between gross margin and net margin?

Gross margin looks at revenue after direct costs. Net margin includes broader costs such as operating expenses, interest, and estimated taxes.

What is the difference between margin and markup?

Margin is profit divided by selling price or revenue. Markup is profit divided by cost.

Can I download the analysis as XLSX?

Yes. The calculator can export a workbook built from the current inputs, results, target price, scenarios, and planning table.

Can profit margin be negative?

Yes. Profit margin is negative when costs exceed revenue for the scenario being measured.

What costs should I include?

Include costs that match the margin you are trying to measure. Use direct costs for gross margin and broader operating costs for net margin.

Is a higher margin always better?

Not always. Higher margins help, but volume, cash flow, customer demand, refunds, and competitive pricing also matter.

Related Calculators

Sources & References

Figures on this page are checked against primary, authoritative sources. Links open in a new tab.

Business disclaimer

Results are estimates for planning and analysis based on the figures you enter. They are not accounting, tax, or financial advice — verify with your own records and a qualified professional before making decisions.

Built and maintained by Calculator Matters, an independent calculator project. Method checked against published formulas and primary sources · Educational estimate, not professional advice · How we calculate · Found an error? corrections@calculatormatters.com