Calculating Profit Margin Formula – A 2-Minute Guide That Works

What is Profit Margin
Profit margin measures how profitable your online store, product, or service is. Instead of a dollar amount, it’s shown as a percentage. The higher the percentage, the more profit you make compared to your costs.
Different Types of Profit Margin
Gross Profit Margin Formula
Gross Profit Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100
3 Steps to Calculate Gross Profit Margin
- Step 1: Subtract your total cost of goods sold (COGS) from your revenue.
- Step 2: Divide that number by your revenue.
- Step 3: Multiply the result by 100 to express it as a percentage.
Gross Profit Margin Calculation Example
How to Calculate Operating Profit Margin
Operating Profit Margin Formula
Operating Profit Margin = Operating Profit ÷ Revenue × 100
3 Steps to Calculate Operating Profit Margin
- Step 1: Subtract all operating expenses (including overhead, admin, and sales expenses) from your revenue to get operating profit.
- Step 2: Divide your operating profit by your revenue.
- Step 3: Multiply the result by 100 to express it as a percentage.
Operating Profit Margin Calculation Example
You can plug the formulas below into your Excel spreadsheet.
Or, for net profit margin, let TrueProfit’s free Profit Margin Calculator do the math for you!
Net Profit Margin Formula
Net Profit Margin = Net Profit ÷ Revenue × 100
3 Steps to Calculate Net Profit Margin
- Step 1: Subtract all expenses, including COGS, operating expenses, taxes, interest, and one-time costs, from your revenue to get net profit.
- Step 2: Divide your net profit by your revenue.
- Step 3: Multiply the result by 100 to express it as a percentage.
Net Profit Margin Calculation Example
Leah Tran is a Content Specialist at TrueProfit, where she crafts SEO-driven and data-backed content to help eCommerce merchants understand their true profitability. With a strong background in content writing, research, and editorial content, she focuses on making complex financial and business concepts clear, engaging, and actionable for Shopify merchants.
The Newsletter for Dropshippers
Who Hate Losing Money
Weekly tactics from dropshippers & eCom operators who've cracked profitability in an era where thin margins kill most stores.
Your next wise move starts with seeing your True Net Profit now.
Get instant net profit insights into your numbers to make every choice count with TrueProfit!











