A GPM calculator estimates gross profit margin from a product’s selling price and cost of goods sold (COGS). Enter those two values to get the profit per sale and the percentage of revenue left after direct product costs; it does not calculate net profit or guarantee a sale is profitable overall.
Formula
Gross profit margin (GPM) is gross profit divided by selling price, multiplied by 100:
GPM (%) = (selling price − COGS) ÷ selling price × 100
- Selling price: revenue received for one unit, in dollars ($).
- COGS: direct cost assigned to one unit sold, in dollars ($).
- Gross profit per unit: selling price − COGS, in dollars ($).
The price must be above zero because it is the denominator. Use the same currency and basis for both inputs—for example, both per item, not a per-item price compared with a shipment’s total cost. The calculator treats each figure as a single unit’s amount; it does not apply sales tax, discounts, or currency conversion.
Worked Example
Using the calculator’s default values, the selling price is $50 per unit and COGS is $30 per unit.
- Gross profit per unit = $50 − $30 = $20.00.
- Gross profit margin = ($50 − $30) ÷ $50 × 100 = 20 ÷ 50 × 100 = 40.00%.
The result means that 40 cents of each revenue dollar remains after the included direct costs, before operating expenses, interest, taxes, and other costs not counted in COGS.
Assumptions
- Price and COGS refer to the same unit, currency, and sales basis.
- COGS includes the direct costs relevant to the business’s accounting method; the calculator does not decide which costs belong there.
- The entered price is positive, and the calculation excludes expenses not included in COGS.
What GPM Measures—and What It Does Not
Gross profit margin is a profitability ratio that measures how much of sales revenue remains after the cost of goods sold. It is commonly used to evaluate products, compare periods, and understand whether pricing and direct production or purchasing costs leave room to cover the rest of a business’s expenses.
GPM is not the same as gross profit in dollars. In the example, gross profit is $20 per unit, while GPM is 40%. The dollar figure describes the amount left on that sale; the percentage makes it easier to compare sales of different sizes. If 100 units sell at the same price and cost, gross profit is $2,000, while the margin remains 40%.
It is also not net profit margin. Rent, administration, marketing, payment fees, depreciation, interest, and taxes may reduce the final profit, depending on how the business records them. A product can have a healthy GPM and still contribute little or no net profit if overhead or other expenses are high.
What to Include in COGS
COGS generally represents the direct costs of producing or acquiring the goods sold during a period. The right treatment depends on the business, its accounting rules, and the costs involved. For a product seller, relevant costs may include the purchase price and certain costs of getting goods ready for sale. For a manufacturer, direct materials and production labor are common components, along with eligible production overhead.
Do not assume every business expense belongs in COGS. General advertising, office rent, and many administrative costs are typically operating expenses rather than direct product costs, but classification can depend on the facts and applicable accounting standards. For formal financial reporting or tax treatment, use the rules that apply to the business and consult a qualified accounting professional.
Consistency matters more than choosing a convenient definition. If you include packaging or freight in COGS in one period but omit it in another, the resulting margins are less comparable. State what the calculation includes when sharing or comparing a GPM figure.
How to Use the Result for Pricing
The calculator answers, “What is the gross margin at this price and cost?” It does not set a recommended price. To find a price that would produce a target gross margin, rearrange the formula:
Required selling price = COGS ÷ (1 − target margin as a decimal)
For example, if COGS is $30 and the target GPM is 40%, the calculation is $30 ÷ (1 − 0.40) = $50. This is a mathematical illustration, not a market recommendation. Demand, competitor pricing, discounts, returns, taxes, and the business’s operating costs still matter.
Markup is a frequent source of confusion. Markup is gross profit divided by cost, whereas GPM is gross profit divided by selling price. With a $30 cost and $50 price, markup is $20 ÷ $30 × 100 = 66.67%, but GPM is $20 ÷ $50 × 100 = 40%. The same transaction has different percentages because the denominators differ.
Common Problems and Limits
- Mixing totals and unit values: compare a unit price with unit COGS, or total revenue with total COGS—not one of each.
- Leaving out direct costs: an incomplete COGS figure makes the calculated margin look higher than it should.
- Using revenue after a discount with the original cost: this can be valid if the discount reflects the actual sale, but be sure the price entered is the amount used as revenue for the comparison.
- Confusing margin with markup: margin uses selling price as its base; markup uses cost.
- Ignoring the wider business: GPM alone cannot show whether the business is profitable after operating and other expenses.
A negative GPM means the entered COGS is greater than the selling price, so the sale loses money before other expenses. A 0% GPM means price and COGS are equal. A 100% GPM would mean COGS is zero under the entered figures, which is unusual for a physical product and may indicate missing costs or a different revenue model.
Frequently Asked Questions
How do I calculate gross profit margin?
Subtract COGS from selling price, divide the result by selling price, then multiply by 100. For totals, use total revenue and the matching total COGS.
Is a 40% gross profit margin good?
There is no universal good margin. Typical margins vary by industry, product mix, pricing, and accounting treatment. Compare like with like, and consider operating expenses as well as GPM.
What is the difference between gross margin and markup?
Gross margin divides gross profit by selling price. Markup divides gross profit by cost. Because the bases differ, markup is usually a larger percentage for the same sale.
Can gross profit margin be over 100%?
Not under the standard formula when revenue is positive and COGS is zero or greater: gross profit cannot exceed revenue. A result over 100% may signal a data-entry error or inconsistent definitions.
Does GPM include shipping, labor, or fees?
It depends on the business’s accounting treatment and whether each cost is classified as COGS or an operating expense. Apply a consistent definition, and include direct costs when appropriate.
Related
Formula used
in price | Selling price per unit | $ | 50 | 0 in cost | Cost of goods sold per unit | $ | 30 | 0 out gpm | Gross profit margin | % | (price - cost) / price * 100 | 2 out gp | Gross profit per unit | $ | price - cost | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Gas Correction Factor Calculator and Table1.2534
- Gas Correction Factor Formula and Calculator0.9829
- Gas Temperature: Calculate It from Pressure and Volume298.15 K
- Gas Correction Factor Calculator: Formula and Uses107.322 same as input
- Gas Cv Calculator: Heat Capacity Ratio and Formula20.786 J/(mol·K)
- Density Temperature Correction Calculator and Formula999.25 kg/m^3