Benchmark your firm against data from 15,000+ accounting firms in the Accounting Industry Index. Get your copy

Explore the trends shaping the future of accounting and why its best years are ahead. Download the 2025 TaxDome Annual Report

350+ companies surveyed: How business clients choose accountants and what they’re willing to pay. Download the report

Download the security guide to learn how to protect client data and build lasting trust. Get the quide

Discover how a team of 10 with 1,000+ clients achieved 5-star loyalty. Read the story

How to calculate gross profit margin?

Gross profit margin measures a business’s profitability by representing the percentage of revenue remaining after deducting the cost of goods sold (COGS). This includes direct costs associated with producing or acquiring the goods or services a business sells.

To calculate gross profit margin, follow these steps:

  • Determine the total revenue by adding up all the income generated during a specific period of time
  • Calculate the COGS, by adding up all direct costs associated with producing or acquiring the goods or services sold. This includes materials, labor, and other direct expenses related to the production or acquisition process
  • Calculate the gross profit by subtracting the COGS from the total revenue

   Gross profit = Total revenue – Cost of Goods Sold

Gross profit formula

  • Determine gross profit margin by dividing gross profit by total revenue and multiplying the resulting amount by 100 to express it as a percentage

Formula to calculate gross profit margin

EXAMPLE
If a company’s total revenue is $500,000 and its COGS is $300,000, the gross profit would be $200,000. The gross profit margin would be ($200,000 / $500,000) x 100 = 40%

Frequently asked questions

Can a gross profit margin be negative?

Yes, a gross profit margin can be negative.

This occurs when the cost of goods sold exceeds total revenue, resulting in a negative gross profit. A negative gross profit margin indicates that a company is not generating enough revenue to cover the direct costs associated with producing or acquiring its goods or services.