Finance

Profit Margin and Markup: Price from Cost or a Target

Work between cost, selling price, gross margin and markup, with a common GST-inclusive option, two reproducible examples and practical pricing limits.

By the Criza Labs team · Updated · 5 min read

Key takeaways

  • Margin divides profit by selling price; markup divides profit by cost.
  • Every solvable pair needs a cost or selling price to set the money scale.
  • The GST option removes one common user-entered rate from both money amounts.

The profit margin and markup calculator finds the relationship between a positive cost, positive selling price and gross trading profit. Use it to check a quoted price, work backwards from a target margin or see what a markup actually earns. The output separates margin from markup because the same percentage means different prices depending on which measure you choose.

This is a pricing worksheet. It does not decide the right price for a market, determine a tax liability or include every expense in a business. Gather the cost and price for the same item, quantity and tax basis before comparing them. A carton cost and a single-item price do not form a meaningful pair until you convert both to the same unit.

Understand the two percentages

Gross profit is selling price minus cost. Margin expresses that difference as a percentage of selling price. Markup expresses it as a percentage of cost. If cost is ₹800 and price is ₹1,000, profit is ₹200. Dividing ₹200 by ₹1,000 gives a 20% margin, while dividing by ₹800 gives a 25% markup.

That difference matters when setting targets. Adding 20% to cost does not create a 20% margin. It creates a 20% markup, and the profit is then a smaller fraction of the selling price. Choose the target that your pricing policy actually specifies rather than copying a percentage into whichever field looks familiar.

The formulas also explain why margin and markup alone are insufficient inputs. They describe the same ratio between cost and price. Many pairs of money amounts share that ratio: ₹80 and ₹100 behave just like ₹800 and ₹1,000. An absolute cost or price is needed to fix the scale.

Follow the controls

  1. Select Known values. Choose Cost + Selling price, Cost + Margin, Cost + Markup, Selling price + Margin or Selling price + Markup.
  2. Enter the two fields shown for that pair. Percentage fields use ordinary percentages, so enter 20 for 20%, not 0.20.
  3. Tick Entered money amounts include GST only when the entered cost or price includes the common GST rate you will supply.
  4. Enter GST rate (%). The displayed 18 is an editable illustration, not a rate assigned to your product. Use zero when appropriate to your scenario.
  5. Review Profit margin and the rows for cost, price, profit and markup. Use Copy to copy the short profit summary if needed.

When you change Known values, previously typed values remain available in their respective fields. Check the newly visible pair before using the result. The output updates as you type, and an invalid pair produces an error instead of a stale answer.

Two worked examples

Example 1: remove a common included rate. Select Cost + Selling price. Enter cost 944 and selling price 1180. Tick the inclusive option and set GST rate to 18. This example simply assumes that rate for both figures; it does not establish that 18% applies to a particular supply.

The tool divides the entered amounts by 1 + 18/100 = 1.18. Cost excluding GST is 944/1.18 = 800, while price excluding GST is 1180/1.18 = 1000. Profit is 1000 − 800 = 200. Margin is 200/1000 × 100 = 20%, and markup is 200/800 × 100 = 25%. Including-rate rows return ₹944 and ₹1,180.

Example 2: price from a target margin. Select Cost + Margin, enter cost 600 and margin 25, leave the inclusive option unticked and enter rate 0. Price is 600/(1 − 25/100) = 800. Profit is ₹200, margin is 25% and markup is approximately 33.33%.

Compare that result with adding 25% to ₹600: the latter gives ₹750 and only 20% margin. Both calculations can be valid, but they answer different pricing instructions. The calculator’s selected pair makes the intended denominator explicit. These two worked examples are also reproduced in the project’s Node tests.

Limits of the model

Both cost and price must be positive. The calculator deliberately excludes zero-cost giveaways and zero-price transfers because one of the percentage ratios would be undefined. A negative profit is supported when price is below cost. Margin must be below 100%, and markup must be above −100%, so the derived money amounts remain positive.

The GST-inclusive option is arithmetic using a single common rate. It removes that factor from entered money amounts and shows the corresponding inclusive amounts again. It does not identify eligible input tax credit, assess recoverability, handle different purchase and sale rates or calculate output tax liability. For those questions, use verified records and the applicable rules separately.

The profit row is gross trading profit for the entered cost basis. Rent, staff time, payment fees, delivery, returns and other expenses only affect it if you have intentionally included them in cost. Do not label it net business profit without a fuller model. The break-even calculator can help separate recurring fixed costs from per-unit contribution.

Arithmetic uses ordinary browser numbers, and money and percentage displays are rounded. Calculations use the underlying values rather than the printed two-decimal result. Small rounding differences can therefore appear if you manually reverse a displayed percentage. Keep your original inputs when comparing alternatives.

Common mistakes

  • Treating markup and margin as interchangeable targets.
  • Comparing a tax-inclusive selling price with a tax-exclusive cost.
  • Entering an amount for a pack on one side and a unit on the other.
  • Assuming the example GST rate is a product classification.
  • Counting gross trading profit as net profit after every business expense.
  • Trying to determine rupee amounts from margin and markup alone.

Questions and answers

Which percentage should I use for a pricing target?

Use the measure named in your pricing policy. Margin is a share of revenue; markup is an addition relative to cost. If the policy only says “profit percentage”, clarify the intended denominator before using the target.

Can I work backwards from a selling price?

Yes. Choose Selling price + Margin or Selling price + Markup. The tool derives cost and the remaining measures. Check that the price and any inclusive-rate setting use the same basis as your target.

Does the GST checkbox claim that tax is profit?

No. It removes a common entered factor before calculating the trading difference. The result does not determine the business’s actual GST treatment, credit entitlement or liability.

Can the result show a loss?

Yes. Enter a positive selling price below a positive cost. Profit, margin and markup become negative. A negative margin may be less than −100% because the loss can exceed the selling price.

Are these figures saved or shared automatically?

No. This worksheet keeps inputs in the current page. The Copy action places only the selected summary on your clipboard. It does not save a pricing record or send figures to analytics.

Use the percentage calculator for a separate proportional check and the GST calculator for a standalone user-rate calculation.

Free tools for this

Calculators

GST Calculator

Free GST calculator for India. Add GST to a price or remove it from an inclusive amount, with the CGST, SGST and IGST split.

More guides

Free desktop app from Criza Labs

Bill every day? Get CrizaVoise free

GST invoices, thermal receipts, stock and payments in one offline app for Windows, Linux and macOS. No subscription, no sign-up, no ads, and your data stays on your computer.

  • 58 mm and 80 mm thermal printing
  • UPI QR on every invoice, WhatsApp sharing
  • Open source (Apache 2.0), English, Hindi, Gujarati and more
The CrizaVoise dashboard with quick bill and new invoice buttons, stock alerts and sample figures