Margin & Markup Calculator (Cost ↔ Price)

Compute price from target gross margin, or back-calc margin/markup from price. Includes extra costs and rounding.

gross margin calculator / markup calculator / pricing calculator cost to price

ප්‍රකාරය
Currency

ආදානය

ප්‍රතිඵල

Materials, procurement, etc.

40 = 40%

Packaging 30 + Shipping 200 = 230

Used for comparison

උසස් විකල්ප

Recommended price
Gross profit
-
Gross margin (%)
-
Markup (%)
-
Gap to target
-
Rounding optimization
Uses currency-specific endings
Price ending presets
-
Suggested prices
Generated from common endings
Formulas
Gross margin
Margin = (Price - (Cost + Extra)) / Price
Markup
Markup = (Price - (Cost + Extra)) / (Cost + Extra)
Price from cost
Price = (Cost + Extra) / (1 - Target margin)
With payment fees
Price = (Cost + Extra) / (1 - Fee rate - Target margin)
Numbers are calculated locally in your browser and are not sent to a server.

Explanation

Margin vs markup
Margin is measured against price; markup is measured against cost. The base differs, so the numbers are different.
Price from cost
Price = (Cost + Extra) / (1 - Target margin)
Margin from price
Margin = (Price - (Cost + Extra)) / Price

නිතර අසන ප්‍රශ්න

Can I include payment fees?
Yes. Put them in Extra, and if the fee is a % of price, use the advanced fee rate for higher accuracy.
Can I get price from a target margin?
Yes. In the Cost → Price tab, enter cost and target margin to get a recommended price and endings.
What about multiple products?
Use the bulk tab. Paste CSV/TSV and download the results as CSV.

සටහන්

This tool is for calculation support and does not replace design, legal, contract, or safety requirements.

Presets are examples only and may vary by situation.

This tool computes gross profit (price − cost − extra). It may differ from accounting profit that includes overhead, labor, ads, fixed costs, and taxes.

Recommended price
-