What is the Profit Margin Calculator?
A profit margin calculator is an essential unit-economics tool that determines the percentage of a product's selling price retained as gross profit after paying direct Cost of Goods Sold (COGS). Whether you sell physical merchandise, wholesale inventory, or packaged services, knowing your exact gross profit margin tells you how much room you have to fund marketing, payroll, and operations.
Because business owners frequently need to solve pricing from different starting points, this free gross profit margin calculator includes three calculation modes: compute margin and markup from your existing cost and price, reverse-engineer the exact selling price required to hit a desired margin percentage, or calculate selling price and margin from a cost-plus markup percentage.
How to use the Profit Margin Calculator
Follow these steps to analyze your unit margins and set profitable retail prices:
- Choose Your Calculation Mode: Select From Cost & Revenue to audit an existing price, From Cost & Desired Margin % to solve for a target selling price, or From Cost & Markup % to convert a cost-plus markup into gross margin.
- Enter Unit Cost (COGS): Input the direct manufacturing, wholesale sourcing, or fulfillment cost for a single unit.
- Enter Price, Margin, or Markup: Depending on your selected tab, type your selling price, target margin percentage, or markup percentage.
- Simulate Target Margins & Download PDF: Use the Target Margin Price Simulator slider (5% to 70%) and the benchmark table to compare pricing tiers, then export a client-ready A4 PDF report.
Profit Margin Calculator formula
The profit margin formula and its companion markup conversions are defined below:
Notice that in the margin vs markup formula, profit margin always divides by selling price, whereas markup always divides by unit cost.
Worked example
Using the exact default numbers in the calculator above, suppose you source a product for $60.00 and sell it for $100.00:
- Unit Cost (COGS): $60.00
- Selling Price (Revenue per Unit): $100.00
Every unit sold generates $40.00 in gross profit, meaning 40.0% of the retail price is retained to cover customer acquisition and operating overhead, while 60.0% recovers the direct product cost.
Why it matters
Knowing how to calculate profit margin accurately protects your business from underpricing. A 5% or 10% error in gross margin might seem minor on a single unit, but across thousands of orders it determines whether your company can afford paid customer acquisition, wholesale discounts, or seasonal promotions.
By benchmarking your unit margin before committing to supplier purchase orders or retail price lists, you ensure every sale contributes meaningfully toward fixed overhead and net earnings.