Gross Profit Margin
Measure how much of each sales dollar remains after direct costs. Margin helps you compare different prices and products consistently.
12 easy-to-use tools for smarter business decisions.
Use our free profit margin calculator to work out gross profit, margin percentage, markup, and a target selling price in seconds. Compare costs and prices, estimate profit across multiple sales, and make everyday product pricing decisions with clearer numbers.
Designed for US retailers, ecommerce sellers, freelancers, and small business owners. All calculations run directly in your browser, with no sign-up required.
Select your calculation type, enter your numbers, and see an immediate breakdown. Results are estimates based on the direct costs you include.
Understand profitability per product and across a group of sales without setting up a spreadsheet.
Measure how much of each sales dollar remains after direct costs. Margin helps you compare different prices and products consistently.
See the gross profit from one sale and the total gross profit for the quantity you enter, including loss-making prices.
Set a desired gross margin percentage and calculate the mathematical selling price needed to reach it.
Whether you sell physical products or services, begin with consistent per-unit numbers.
Input the direct cost of one product or service. For inventory, that might include purchase price and other directly attributable costs.
Choose an actual selling price to calculate margin, or specify your desired margin to solve for a required selling price.
Review gross profit, margin, markup, and totals. Adjust numbers to test discounts, supplier changes, or new pricing scenarios.
Margin and markup both start with gross profit, but they use different denominators. The distinction matters when setting prices.
| Calculation | Formula | Meaning |
|---|---|---|
| Gross Profit | Selling Price − Direct Cost | Dollars remaining before other expenses. |
| Gross Margin (%) | (Gross Profit ÷ Selling Price) × 100 | Profit as a percentage of sales. |
| Markup (%) | (Gross Profit ÷ Direct Cost) × 100 | Profit as a percentage of cost. |
| Target Selling Price | Cost ÷ (1 − Target Margin ÷ 100) | Price required for a chosen gross margin. |
| Total Gross Profit | Gross Profit Per Unit × Quantity | Gross profit across selected sales. |
Percentages require a nonzero denominator. With zero unit cost, markup is undefined; a 100% gross margin can occur only with zero direct cost and positive selling price.
Profit margin measures profit relative to revenue. Markup measures profit relative to cost. For example, a product costing $60 and selling for $100 produces $40 in gross profit, a 40% gross margin, and approximately 66.67% markup. Using a 40% markup instead of a 40% margin would produce a price of $84, which would lower the actual gross margin to about 28.57%.
Retail stores, wholesalers, service providers, and ecommerce teams should agree on which percentage they are discussing before applying pricing rules. Our markup calculator is a useful companion when your standard pricing process starts with a markup on cost.
These examples use illustrative figures so you can understand each formula before using your own pricing data.
A shop pays $45 for an item and sells it for $75. Gross profit is $30 and gross margin is 40%. If the shop sells 20 items under the same assumptions, total gross profit is $600.
A freelancer charges $250 for a service with $100 in directly attributable costs. The modeled gross profit is $150, making the gross margin 60%. Other overhead and taxes are not included.
An ecommerce seller has a $32 direct cost and wants a 20% gross margin. The target selling price is $32 ÷ 0.80 = $40. That leaves $8 in gross profit per sale.
A profit margin calculator is a convenient starting point for deciding whether a product or service price covers its direct costs. A small retailer can compare two vendors, a consultant can evaluate a quoted project fee, and an ecommerce seller can see how discounts affect the amount left after purchase costs. The number is most useful when the underlying costs are complete and consistently defined.
Gross margin is not the same as net profit. Gross margin generally compares sales revenue with the cost of goods sold or other directly attributable delivery costs. Net profit is affected by additional expenses such as office rent, salaries unrelated to direct delivery, administrative software, advertising, loan interest, and income taxes. A 40% gross margin therefore does not mean the owner takes home 40 cents from every dollar in sales.
Businesses should decide what belongs in direct cost before comparing products. A merchant may need to account for purchase cost, freight-in, materials, or manufacturing labor. A service company may include directly billable subcontractor costs or job-specific supplies. Payment processing fees, fulfillment charges, returns, and marketplace fees can also affect unit contribution even when they are reported separately from formal cost of goods sold. If your goal is a true per-order contribution estimate, account for the relevant expenses explicitly instead of labeling every result “gross margin.”
Discounts reduce selling price while many costs stay constant. Suppose a product sells for $100 with $60 in direct costs: gross profit is $40. A 10% discount reduces revenue to $90, leaving $30 in gross profit and a 33.33% margin. That is a 25% reduction in gross profit dollars from the original sale, even though the selling price dropped by only 10%. Before starting a promotion, compare both the new margin and the likely change in sales volume. The discount calculator can help examine the price reduction itself.
Different businesses need different margins because their overhead, business models, return rates, competitive conditions, and sales volumes vary. No single gross margin percentage is right for all US small businesses. A target margin can guide your pricing discussion, but you should also examine customer demand, sales tax treatment, market prices, and the total cost of operating the business. Compare several possible prices and use actual transaction data to see whether your assumptions hold up.
When the target is mathematically impossible under your inputs, the calculator should explain why rather than show a misleading price. For a positive direct cost, a 100% margin would require an infinitely high price; this tool therefore accepts targets below 100%. For price-setting decisions that could materially affect the business, reconcile calculated results with your accounting records.
Accurate business decisions start with choosing the correct measure and entering costs consistently. If your inventory records use landed cost but your calculator uses only the supplier's invoice price, the estimated margin may be overstated.
It also matters whether your selling price includes separately collected sales tax and whether shipping, refunds, or promotional discounts have been accounted for. Check whether you are comparing gross margin, contribution margin, or net margin before drawing conclusions from the percentage.
Explore connected pricing, payment, and everyday math tools as the Toolwise library expands.
Work from your unit cost and markup percentage to estimate selling price and compare the corresponding margin.
Explore markup calculator →Compare original and promotional prices and see how percentage discounts change what a customer pays.
Explore discount calculator →Estimate simple card payment fees so you can better understand the costs associated with accepting payments.
Explore payment fee calculator →Related pages may not be available until their individual calculators are published.
Calculator outputs are a useful check, but larger pricing decisions benefit from complete financial records and credible guidance. The US Small Business Administration's financial management guide offers background on business finances. For federal tax reporting considerations, visit the IRS small business resource center.
These external references provide general information; they do not verify the values entered into this calculator or endorse Toolwise.
Common questions about margins, markups, targets, and everyday business pricing.
Subtract direct cost from selling price to find gross profit. Divide that gross profit by selling price, then multiply by 100. A $100 selling price and $60 direct cost produce a 40% gross profit margin.
Gross margin compares revenue with direct costs or cost of goods sold. Net profit margin considers the wider collection of business expenses and taxes. This tool calculates gross margin from the costs you supply, not net margin.
Divide unit cost by one minus the target margin expressed as a decimal. For a $60 cost and a 40% target gross margin, $60 ÷ 0.60 gives a $100 selling price.
No. Markup divides profit by cost while margin divides profit by selling price. A 40% markup corresponds to approximately 28.57% gross margin when the cost is positive.
Yes. If the selling price is below direct cost, gross profit and margin are negative, indicating a loss before considering other expenses.
With a positive selling price and zero direct cost, gross margin is 100%, but markup is undefined because its formula would divide by zero. The calculator labels markup as N/A.
At a 100% gross margin, direct costs would need to equal zero. When direct cost is positive, no finite selling price produces an exact 100% margin.
Not when unit cost and selling price stay constant. Quantity scales revenue, direct costs, and gross profit dollars but leaves the per-unit margin percentage unchanged.
For a typical gross margin calculation, use sales revenue excluding separately collected sales tax. Tax treatment can vary, so check the relevant accounting rules for your situation.
Yes. You can calculate gross profit, margin, markup, target selling price, and quantity-based totals without creating an account.
Return to the calculator, adjust your direct cost or target margin, and compare the results. For other business questions, explore our growing library of free online small business calculators.