Profit, margin, and markup answer related—but different—questions.
Pricing language can appear interchangeable because the same sale produces all of the numbers. Cost, selling price, and profit are connected, yet each percentage uses a different starting point. This calculator is designed to make that denominator visible. It gives transparent arithmetic from values you enter; it does not decide what a product should cost, which expenses you should include, how a market will behave, or what price is appropriate for a business.
Start with the three money values
Cost is the amount included in your calculation as the cost of making, obtaining, or delivering a unit. Selling price, also called revenue for one sale in this simplified model, is what the customer pays before any choices you make about tax treatment. Profit is selling price minus cost. If cost is 80 and selling price is 100, profit is 20. That subtraction is the common numerator for both margin and markup.
The word “profit” alone does not say whether every cost has been included. A page may discuss gross profit, contribution, operating profit, or net profit, but those labels depend on a defined cost set and accounting treatment. Toolyfi deliberately leaves that classification to you. State what the cost figure contains before comparing results between products, periods, or businesses.
Margin is profit as a share of selling price
Margin equals profit divided by selling price, multiplied by 100. With cost 80 and selling price 100, profit is 20 and margin is 20 ÷ 100 × 100 = 20%. It describes the portion of the sale price remaining after the entered cost. The denominator is the final selling price, so margin is bounded below 100% when cost is non-negative and price is positive.
Markup is profit as a share of cost
Markup equals profit divided by cost, multiplied by 100. In the same 80-cost and 100-price example, markup is 20 ÷ 80 × 100 = 25%. Margin and markup are not conflicting answers. They are different ratios describing the same 20 profit. Treating them as interchangeable can create a pricing error because asking for a 20% margin is not the same as adding a 20% markup.
Planning a price from target margin
To plan a selling price from a target margin, first convert the percent to a decimal. Then divide cost by one minus that decimal. For cost 80 and a 20% target margin: 80 ÷ (1 − 0.20) = 100. The resulting 100 price leaves 20 profit, which is 20% of 100. This is different from adding 20% of cost; that would produce 96, whose margin is only about 16.67%.
A target margin of 100% or more is not valid in this simple formula because one minus the decimal target becomes zero or negative. The calculator shows a guardrail rather than inventing a price. Negative or zero costs may have a meaning in a specific accounting record, but they do not support a normal markup calculation; check the underlying inputs before relying on a percentage.
How to use a result responsibly
Use the result as a transparent arithmetic checkpoint. It can help compare two chosen prices, verify a quoted markup, or identify the selling price implied by a selected target. It cannot model discounts, returns, card fees, taxability, inventory losses, fixed expenses, demand, competition, accounting standards, or tax obligations unless you first incorporate those factors into the inputs appropriately. When a real decision depends on such factors, obtain the relevant business, accounting, or financial advice.
The values stay in the current browser during the calculation. Toolyfi does not supply live competitor prices, currency conversion, benchmarks, customer data, or forecasts. This scope is a strength: you can see exactly which numbers and formulas produced the result rather than trusting a hidden recommendation.
Discounts change the selling-price denominator
A planned margin calculated from a list price can change as soon as a discount is applied. If an item costs 80 and sells for 100, the simple model returns 20 profit and 20% margin. If the actual selling price becomes 90, profit falls to 10 and margin becomes 10 ÷ 90, or about 11.11%. The cost did not change, but the denominator and numerator both did. For that reason, calculate from the price you expect to receive rather than from a price that is only displayed.
More than one adjustment can make the path hard to see. A percentage discount, a promotional credit, a bundled offer, a refund, or a payment fee may each affect the relevant sale amount differently. Do not add percentages together automatically. Write the actual price after each chosen adjustment, decide which costs are included in the model, then use the cost-and-price mode to inspect the resulting profit, margin, and markup. The calculator does not know whether a price has already included another charge.
Define cost before comparing a result
Two people can get different margins from the same transaction while both use the formula correctly, because they include different costs. One may use only a purchase price; another may include delivery, direct packaging, payment processing, direct labour, or a stated allocation. Neither selection should be hidden. Name the cost basis in a report or spreadsheet so a later comparison does not accidentally compare a gross-margin figure with a contribution or net result.
A practical check is to list the values already included in your cost entry and the values not included. If you revise the cost, run the calculation again rather than trying to adjust the displayed margin mentally. With a positive selling price, every additional entered cost decreases profit and margin one-for-one in currency terms, but the percentage effect depends on the sale price. That relationship is why an explicit input is more useful than a generic statement about a healthy percentage.
Compare selected prices one at a time
When considering several selected prices, keep the same cost basis and change only price for each scenario. With an entered cost of 80, prices of 90, 100, and 110 produce profits of 10, 20, and 30. The margins are about 11.11%, 20%, and 27.27%; markups are 12.5%, 25%, and 37.5%. The difference between those percentage sequences is not a software quirk. Each sequence is using a different denominator.
This comparison does not decide which price should be used. Demand, agreements, taxes, fixed costs, returns, payment terms, and competitive information can all matter but are not part of this arithmetic. If you need to retain a scenario, write down its inputs and definition instead of treating the final percentage as self-explanatory. The formula area is intended to support that traceability.
Interpret zero and negative results carefully
A selling price equal to cost produces zero profit, zero margin, and zero markup in this model. A price below cost produces negative profit. The arithmetic is still useful because it shows the direction and amount of the gap, but its business meaning depends on facts outside the tool. A negative result might reflect a deliberate promotion, an incomplete cost entry, a returned item, a loss-making sale, or a different accounting classification. The calculator cannot distinguish among those possibilities.
When cost is zero, markup cannot be calculated because it would divide by zero. Margin can still be calculated from a positive price and zero entered cost, but do not let that result imply every real cost is zero. Check whether the selected model is the right one. A guardrail is preferable to a polished-looking percentage that hides an undefined denominator.
Do not average percentages without the underlying amounts
A set of products can have several different margins, but an ordinary average of their percentages may not describe the combined result. Imagine one sale with 10 profit on 100 revenue and another with 50 profit on 500 revenue. Each has a 10% margin, so the simple average happens to agree with the combined 60 profit divided by 600 revenue. That agreement is a result of the revenue weights being aligned. It is not a rule that every list of margins can be averaged.
To calculate a combined margin, add the chosen profits and divide by the combined chosen selling prices. The same discipline applies to markup: add the chosen profits and divide by the combined chosen costs. Preserve the individual entries when possible, because a single percentage cannot reveal which product, period, discount, or cost change created the total. This page is a one-scenario calculator; it does not aggregate a product catalogue for you.
Round for display, keep the formula for checking
Currency is often displayed to two decimal places, while a division can produce more digits. The tool calculates with the entered number and then formats its visible money and percentage values. A displayed 16.67% is a readable approximation, not a substitute for the cost and price that created it. When a close comparison matters, use the formula line and the original inputs rather than trying to reconstruct a value from a rounded percentage.
Rounding can also affect a target price if a real payment system accepts only particular price increments. First calculate the unrounded target price, then choose a permitted displayed price and run that selected price through analysis mode. This shows the actual margin and markup after your chosen rounding. It is clearer than calling the rounded price a precise target-margin result when the chosen price differs from the formula’s output.
Revenue is not the same as cash received
In the small model on this page, selling price is used as the revenue denominator. That does not mean every business record labels or recognizes money in exactly the same way. Payment timing, invoices, refunds, deposits, taxes, chargebacks, and contract terms can affect what appears in an account or bank balance. If you are comparing this calculator with a report, confirm that its numerator and denominator refer to the same defined period and transaction set before treating any difference as an error.
The same caution applies to costs paid at a different time than a sale. This calculator can illustrate a unit-level relationship from the values entered; it does not prepare cash-flow projections, financial statements, invoices, tax returns, or forecasts. For a decision that depends on those matters, keep source records and consult the appropriate qualified source.
Work through the same formula in two different scenarios
A worked example is useful only when its inputs are visible. Consider a product scenario in which a seller chooses an entered cost of 48 for one item and an entered selling price of 75. The calculator subtracts 48 from 75, giving 27 of profit in this narrow model. Margin is then 27 divided by 75, or 36%. Markup is 27 divided by 48, or 56.25%. The outputs do not say whether 48 is a complete cost. It might be only the purchase cost, or it might include a chosen set of direct delivery and packaging costs. The transparent part is that the percentage follows exactly from the two entries.
Now consider a service scenario. A consultant may enter 180 as the cost assigned to a defined piece of work and 300 as the chosen selling price. The arithmetic gives 120 of profit, 40% margin, and about 66.67% markup. The formula is the same as the product example, even though the underlying cost may contain a different mix of labour, contractor work, software, travel, or other selected amounts. A label such as “service margin” does not change the denominator. It only describes the context in which a person selected the cost input.
These examples are illustrations, not suggested prices or sector benchmarks. A transaction can carry terms, taxes, discounts, payment fees, refunds, or costs that the compact calculation does not model automatically. The practical lesson is to repeat the process with your defined inputs: state the scenario, enter its cost, enter the price actually being compared, and retain the shown formula with the output. That makes a later review possible without guessing which number was used as the denominator.
An example can also show why a small price change should be recalculated rather than applied as a percentage shortcut. Using the product cost of 48, an 80 selling price gives 32 profit and a 40% margin. Reducing the selected price to 72 gives 24 profit and a 33.33% margin. Profit changed by 8, but margin did not simply fall by ten percentage points because both the profit and selling-price denominator changed. Analysis mode is designed for this direct comparison: keep the same cost definition, replace the candidate price, and read the new result.
Use target-margin mode as a formula check, then verify the chosen price
Target-margin mode starts with a different question: “What price does this selected cost imply if I want this particular margin percentage?” The page converts the selected percentage to a decimal, subtracts it from one, and divides cost by the remainder. For an entered cost of 48 and a target margin of 40%, the calculation is 48 ÷ (1 − 0.40), which produces 80. The resulting profit is 32 and 32 divided by 80 returns to 40%. This circular check is the reason the formula uses one minus the target margin rather than adding that percentage to cost.
A practical workflow has two separate steps. First, use target mode to calculate the unrounded mathematical price for the exact cost and target that you entered. Second, if a checkout system, price list, contract, or business decision uses a different display price, switch to analysis mode and enter that chosen price. For example, a target formula might return 79.9833, while an actual system can use only 79.99 or 80.00. Analysis mode makes the margin after that selection explicit instead of silently treating a rounded number as an exact target result.
The mode is not a recommendation engine. It does not know whether a customer will accept a price, whether a discount will be applied, which taxes appear at checkout, or whether costs will change. It is a way to expose the arithmetic implied by an assumption. Keep the target itself distinct from the output: a target is an input chosen by the user, while the price, profit, and markup are the formula results that follow from it.
It is also useful to test sensitivity with a few deliberately named scenarios instead of one apparently final answer. Enter the same defined cost with two or three target margins and record the resulting prices. If the cost changes, enter the revised cost and run the same targets again. The calculator does not store a scenario sheet, but the formula line gives a reproducible note for each comparison. Avoid implying that one result is certain just because the arithmetic is exact; the calculation is conditional on the values entered.
Common margin-and-markup mistakes start with the denominator
The most common practical mistake is to use the word margin when the calculation actually adds a percentage to cost. If cost is 100, adding 30% of cost produces a price of 130. The profit is 30, so markup is 30%, but margin is 30 divided by 130, or about 23.08%. A 30% target margin needs a different calculation: 100 ÷ (1 − 0.30) = about 142.86. The gap is not a rounding issue; it comes from the difference between cost and selling price as the base.
A second mistake is to compare percentages whose cost definitions are different. One report might use an item purchase cost, while another includes direct packing and processing. Both figures can be calculated accurately from their inputs, but a comparison without labels can be misleading. Before comparing a result across items or periods, write the cost definition beside it. If the purpose is to compare like with like, use the same definition in each scenario. If the purpose is to understand a change in definition, retain both sets rather than collapsing them into a single unlabeled percentage.
A third mistake is to calculate from a list price when the relevant price is the amount after a known adjustment. A 20% margin at a listed price does not remain a 20% margin after a discount unless cost and price happen to change in a matching way. Similarly, an amount described as tax-inclusive or tax-exclusive needs a consistent treatment before it is used as a selling-price input. Use the Sales Tax Calculator to separate a rate and tax-inclusive amount where appropriate, then document which amount you carried into this calculation. This page does not infer that choice.
Finally, do not treat a percentage as a complete explanation. A high-looking markup may be paired with a lower margin, and neither percentage identifies fixed expenses, demand, payment timing, or an accounting classification. The useful sequence is simpler: preserve the selected cost and price, identify the ratio being discussed, and let the formula make the denominator visible. That process is more reliable than converting a remembered percentage mentally or adopting an unlabeled number from another worksheet.
Read the revenue multiplier as a ratio, not a recommendation
The revenue multiplier on this page is selling price divided by cost. In the 80-cost, 100-price example, it is 1.25× because 100 is 1.25 times 80. This compact ratio is useful as a quick consistency check: with positive cost, a multiplier above 1 means price is above the entered cost; 1 means price equals the entered cost; and a number below 1 means price is below it. The multiplier does not replace margin or markup, because it does not express the difference as a percentage of either denominator.
The ratio can make repeated formula checks easier. A 1.50× price-to-cost relationship means that each selected price is one and a half times its entered cost. The implied markup is 50%, while the implied margin is one-third, or about 33.33%. Reading all three measures together prevents a multiplier from being mistakenly reported as a percentage. It is still conditional on the cost definition: changing the cost entry changes every output, including the multiplier.
Use this calculator when you want a single transparent scenario, a quick formula check, or a readable explanation to accompany a chosen pair of values. Use a spreadsheet or an accounting workflow when you need to retain many products, dates, currencies, quantities, taxes, discounts, or defined cost categories. A spreadsheet can hold the inputs and formulas across rows; this page can help validate the logic for one row before that broader work begins. The two approaches serve different scopes rather than competing for the same task.
When moving a result into a spreadsheet, transfer the defined inputs and formula rather than only the displayed percentage. For example, record “cost 80; selling price 100; profit = price − cost; margin = profit ÷ price; markup = profit ÷ cost.” That format makes it easier to find a changed denominator later. For percentage arithmetic outside pricing, the Percentage Calculator can check a percentage change or portion separately. For a bill-level sharing question, the Tip Calculator addresses a different calculation entirely.
A reproducible calculation note
A useful note records the date, product or scenario name, cost definition, selected selling price, whether the price was pre- or post-adjustment, and the resulting formula. For example: “Scenario A: entered cost 80 includes purchase and direct delivery; entered selling price 100; profit 20; margin 20%; markup 25%.” Someone reading that note can repeat the same arithmetic. A statement such as “margin is 20%” is much less useful when its inputs are not known.
Keep the calculation note separate from any decision rationale. You may have selected a price for reasons outside the scope of the arithmetic, such as a written agreement or a time-limited offer. Distinguishing facts, entered assumptions, formula outputs, and decisions prevents a transparent calculator result from being misread as a recommendation or a market prediction.