Calculate profit margin by subtracting the relevant costs from net revenue, dividing the resulting profit by that same revenue, and multiplying by 100. Define the costs included before comparing percentages, because gross margin, operating margin, and net margin answer different questions.
Open the Profit Margin Calculator.
How to Calculate Profit Margin
The basic calculation is:
Profit margin (%) = (net revenue − included costs) ÷ net revenue × 100.
For a simple sale with net revenue of 150 currency units and included costs of 90, profit is 60 and the margin is 60 ÷ 150 × 100 = 40%. Every unit of revenue therefore leaves 0.40 after the particular costs included in that calculation.
Use a positive revenue denominator. A loss with positive revenue can produce a valid negative margin, but a zero-revenue period cannot produce a meaningful percentage by dividing by zero. Keep the loss amount as an absolute figure when revenue is zero.
The embedded calculator compares one adjusted selling-price amount with total included cost. It can apply a percentage discount and remove tax already included in the price. It does not decide which expense categories belong in your business’s financial statements, so keep a short cost definition beside the result.
The SEC’s guide to financial statements distinguishes revenue and successive expense categories within an income statement. That distinction matters when a calculator uses the broad label total cost: the number you enter determines the meaning of the resulting profit.
Enter Revenue and Costs on a Matching Basis
Choose one product, transaction, order, or accounting period. If the selling-price field represents one accepted order, enter the included cost of that order. Do not combine one order’s revenue with the whole month’s rent unless you deliberately intend that unusual allocation.
Use the same currency and accounting boundary throughout. In a product example, included cost might mean only cost of goods sold. In an internal job analysis, it might include materials, labor, fulfillment, fees, and an explicit overhead allocation. State which interpretation you are using rather than assuming the calculator has included missing expenses.
For a company-wide margin, begin with the appropriate income-statement totals. Gross margin uses gross profit, operating margin uses operating income, and net margin uses net income under the applicable accounting framework. An order-level calculation after selected expenses is not automatically the company’s net profit margin.
Customer tax collected for remittance also needs a consistent treatment. The calculator’s tax field removes a supplied included rate from the discounted selling-price amount. If your selling-price input is already tax exclusive, enter zero in that field rather than removing tax a second time.
Returns, credits, and discounts should reduce revenue according to the same records used for the cost figure. A refund can leave some costs unrecovered, but the amount depends on what was returned to usable inventory and what expenses were actually incurred. Do not assume every refunded sale reverses every cost.
Work Through a Checked Sale Example
Suppose a teaching example has a tax-exclusive selling price of 150, no discount, and included cost of 90. These are hypothetical amounts used to demonstrate the arithmetic, not typical prices or a target margin for an industry.
| Step | Calculation | Result |
|---|---|---|
| Net revenue | Given, with no included tax | 150 |
| Included cost | Documented example allocation | 90 |
| Profit after included cost | 150 − 90 | 60 |
| Margin as a fraction of revenue | 60 ÷ 150 | 0.40 |
| Profit margin | 0.40 × 100 | 40% |
Enter selling price 150, total cost 90, discount 0%, and tax 0%. The result should be 40%. Check the identity revenue equals included cost plus reported profit: 150 = 90 + 60.
Now suppose the same sale receives a 10% discount while the included cost remains 90. Revenue becomes 150 × 0.90 = 135, profit becomes 45, and margin becomes 45 ÷ 135 × 100 = approximately 33.3333%.
The discount is 15, which reduces the original profit of 60 by 25%. This illustrates why a 10% price reduction does not mean a 10% reduction in profit or a ten-percentage-point change in margin. The denominator and the unchanged cost both matter.
Distinguish Margin from Markup
Markup compares profit with cost; margin compares profit with revenue. For the original 150 sale and 90 cost, markup is 60 ÷ 90 × 100, or approximately 66.6667%. Margin remains 40%.
Do not enter a desired markup percentage as though it were the same desired margin. If an item costs 90 and you add a 40% markup, its price is 90 × 1.40 = 126. Profit is 36, so margin is 36 ÷ 126 × 100 = approximately 28.5714%.
To calculate a price for a desired margin, use price = included cost ÷ (1 − margin fraction). A 40% margin on an included cost of 90 requires 90 ÷ 0.60 = 150. This is an arithmetic pricing scenario, not a recommendation that every product should carry that margin.
Business Queensland’s explanation of profit and break-even provides a public business reference for relating income, costs, and profit. Use those distinctions alongside your own records when interpreting an order or company result.
Keep the labels with exported figures. A column headed percentage without specifying margin or markup invites mistakes when someone compares supplier quotes, customer prices, or historical results.
Handle an Inclusive Tax Amount Correctly
Assume a separate teaching scenario has a customer price of 180 containing an illustrative 20% tax on the tax-exclusive price. Dividing by 1.20 gives net business revenue of 150. With included cost 90, profit and margin return to 60 and 40%.
Enter selling price 180, discount 0, tax 20, and total cost 90. The calculator removes the included tax before comparing revenue with cost. The 20% rate here is a mathematical input, not a claim that this rate applies to your transaction or jurisdiction.
Subtracting 20% of 180 would give 144, which is incorrect for removing a tax that was added to an underlying 150. The tax amount in this example is 30, not 36. Its rate is based on the exclusive price, not the inclusive total.
Confirm how discounts and tax apply to the actual transaction before using both fields. The tool applies the stated discount to the supplied price and then divides by one plus the entered tax fraction. A different legal tax base or discount convention needs a separate calculation based on the actual rules.
Compare Products and Periods Without Averaging Away the Difference
For several products, calculate combined margin from combined profit divided by combined net revenue. An ordinary average of individual percentage margins gives every product equal weight even when their sales amounts differ.
Suppose product A has revenue 150 and profit 60, while product B has revenue 600 and profit 120. Their margins are 40% and 20%. Combined profit is 180 on combined revenue of 750, giving 24%, not the unweighted average of 30%.
Compare periods using consistent cost categories and timing. A changed allocation of labor or overhead can change the reported margin even if price and physical consumption stay unchanged. Explain such changes before attributing every percentage movement to pricing or purchasing performance.
Profit margin also differs from cash availability. Customer credit, inventory purchases, loan principal payments, and timing differences can affect cash without matching the revenue-and-expense boundary used in this percentage. A margin calculation does not replace a cash-flow forecast.
Questions About Profit Margin Calculations
Can profit margin be negative?
Yes. If positive revenue is less than the included costs, profit and margin are negative. For example, revenue 150 and included cost 165 give a loss of 15 and a margin of −10%. Keep that result visible rather than omitting a relevant expense to make it positive.
What counts as a good margin?
That depends on the cost definition, business model, risks, sales mix, and the comparison being made. The calculator provides arithmetic, not an industry benchmark. Compare equivalent records and identify the expenses still to be covered before interpreting a percentage as satisfactory.
Should I round costs before calculating?
Use the actual precision supported by your records and retain intermediate values where practical. Round the reported percentage after the arithmetic. Small rounding differences should not be treated as meaningful business changes when the underlying cost estimates are less precise.
What should I save with the result?
Keep the revenue source, cost categories, currency, period or order reference, discount treatment, tax convention, and any exclusions. Those details allow another reader to reproduce the calculation and understand what the margin does and does not include.