Gross Profit: Formula, Margin, and How to Calculate It

Sindhu PartomoSindhu Partomo

Share this article

Gross Profit: Formula, Margin, and How to Calculate It

Gotrade Summary

  • Gross profit = Revenue − Cost of goods sold (COGS): the money left after the direct costs of making or buying what a company sold.
  • Gross margin = Gross profit ÷ Revenue × 100: the same figure as a percentage, so you can compare companies of different sizes.
  • Check the label and the units: Apple calls the dollar amount "gross margin", and Walmart's income statement has no gross profit line, so you subtract cost of sales from net sales yourself.
  • Compare with peers and past years: average gross margins run from about 72% in software and pharma to about 10% in autos (Damodaran, NYU Stern, January 2026).

Gross profit is a company's revenue, minus its cost of goods sold (COGS). Why is this important? Simply, because this shows the amount of money left after paying the direct costs of making (or buying) what the company sold.

In this guide, we will discuss the gross profit formula, how to turn it into a percentage (gross margin), how to find it in a real company's annual report, and how investors read it. This article is for educational purpose, not financial advice.

What is gross profit?

To understand better, let's assume that we are running a shop. We have sold $500,000 worth of products this year. In total, those products cost $300,000 to buy or make. What is left is $200,000, and that is our gross profit. Why is it called "gross"?

Read also: What Is Long-Term Investing? A Simple Guide

It is called "gross" profit, because expenses such as rent, marketing, salaries, interest and taxes all come later. Gross profit only consider the cost of goods in its calculation. This is a starting point when assessing a business, since it answers the big question: "is the thing we are selling profitable; does every sale pay for itself?".

Because of its importance, gross profit is stated near the top on income statements. The income statement can then be read like moving up a staircase: we start with net revenue, subtract the cost of sales, and reach gross profit. Only then, we start subtracting operating expenses.

Note that companies do not always use the words "gross profit". You may also see:

Read also: How to Read a Balance Sheet: A Real 10-K Example
  • Gross margin: many big companies, such as Apple and Microsoft, use this name for the dollar amount.

  • Gross profit rate or gross profit ratio: usually the percentage version.

  • Cost of revenue or cost of sales: the name for COGS in many reports.

So, "gross margin" can mean a dollar figure or a percentage, depending on the company. Always check which one you are looking at, and you may want to know more details about what are included in the COGS. Different companies may calculate COGS differently.

What counts as cost of goods sold

These are general guideline, and not hard rules on what's in COGS. Check the notes when looking at a report from a company.

COGS

not COGS

Raw materials

Head-office rent

Factory workers salaries

Marketing and advertising

Factory overhead

Research and development (R&D)

Inventory (to resell)

Office and admin salaries

Hosting, customer support (for software)

Interest and tax

Gross profit formula and calculation

Gross profit = Revenue − Cost of goods sold

Here is how to calculate it:

  1. Find the revenue (also called sales) for the period, for example one year.

  2. Find the cost of goods sold for the same period.

  3. Subtract COGS from revenue.

If you run a store and do not know your COGS, you can work it out from inventory:

COGS = Beginning inventory + Purchases − Ending inventory

Example

We will use this example through this article. Once you have the COGS and revenue figures, calculating gross profit is quite simple:

  • Revenue: $500,000

  • Cost of goods sold: $300,000

  • Gross profit: $500,000 − $300,000 = $200,000

Gross profit calculator

You can try calculating gross profit using this tool:

Gross profit calculator

How to find gross profit in an income statement

When working with a report from a real company, it can be a little tricky. Here are two examples from annual reports (called "10-K" filings). We will use reports from Apple and Walmart, and all figures are in USD millions.

Apple, fiscal 2026 (year ended 26 September 2026)

  • Net sales: $478,834

  • Cost of sales: $245,232

  • Result: $478,834 − $245,232 = $233,602

One note here is that Apple does print this subtotal, but it calls it "gross margin", and not "gross profit".

Walmart, fiscal 2026 (year ended 31 January 2026)

  • Net sales: $706,413

  • Cost of sales: $535,395

  • Result: $706,413 − $535,395 = about $171,018

Now this is trickier. Walmart does not show a gross profit line in its income statement, at all. If you want the number, then you have to subtract it by yourself. Instead, Walmart has its own discussion section, where it shows a gross profit rate of 24.2%. In summary,

Finding Gross Profit in 10-K reports:

  1. Open the income statement, found under "Financial Statements and Supplementary Data".

  2. Look for net sales or revenue, then cost of sales or cost of revenue.

  3. If there is no gross profit line, subtract the two.

  4. Read the "Management's Discussion and Analysis" (MD&A) section. This is where the company explains, in its own words, why the numbers moved.

Gross profit margin

Remember, we cannot directly compare the dollar amounts made by different companies. A big company will almost always have a bigger gross profit, so we may need to turn it into a percentage:

Gross margin = Gross profit ÷ Revenue × 100

Coming back to our example, the number becomes:
$200,000 ÷ $500,000 × 100 = 40%.
This means for every $1 of sales, 40 cents is left after direct costs. In our real income statement walkthrough, Apple's total gross margin percentage in fiscal 2026 was 48.8%, as reported.

Note that gross margin, gross profit margin and gross profit ratio all mean the same thing: the percentage. Only "Gross profit" means the dollar amount. Just look at the unit, and see whether it's in "$" or "%".

Let's take a look at a comparison example. Suppose there are two companies as such:

Company A

Company B

Revenue

$1,000,000

$200,000

Gross profit

$250,000

$120,000

Gross margin

25%

60%

See that Company A earns more dollars, but Company B keeps far more of each sales dollar, hence a higher margin. This kind of breakdown may help you when deciding on which company you like better.

Margin vs markup

Be careful, as these two terms mean different things. Don't use them interchangeably. Say, an item costs you $60 and you sell it for $100. Look at this breakdown:

  • Gross profit: $100 − $60 = $40

  • Gross margin (based on the selling price): $40 ÷ $100 = 40%

  • Markup (based on your cost): $40 ÷ $60 = 66.7%

Investors would always use margin, because it is measured against revenue, which is the number reported in financial statements.

What is a good gross margin?

A good gross margin would depend on which industry we are talking about, so there is no single "good" margin number. A software company and a supermarket are very different businesses, and have different standards. For reference, here are average gross margins by industry:

Industry

Gross margin

Pharmaceutical

71.73%

Software

71.72%

Semiconductor

58.97%

Apparel

56.88%

Beverage (Soft)

54.74%

Computers/Peripherals

38.36%

Total market (5,994 firms)

37.76%

Retail (General)

33.18%

Restaurant/Dining

32.24%

Grocery and Food retail

26.31%

Aerospace/Defense

17.48%

Auto & Truck

10.41%

Source: Aswath Damodaran, NYU Stern, margins by industry, US data, January 2026.

Why is there such a big gap? Because, simply, selling software is cheap once the code is written. Making one more copy of a software costs almost nothing, compared to selling cars, for example. Selling cars or groceries means paying for physical materials, factories, and shipping on every single sale.

Another special case is with banks, because banks have no real cost of goods sold, so gross margin cannot tell much about their condition. In general, you want to compare a company with its direct competitors and with its own past results. We cannot just judge companies against any number.

Gross profit vs operating profit vs net profit

Gross profit is only the first step down the income statement. Let's work it through:

Step

Amount

Margin

Revenue

$500,000

− Cost of goods sold

−$300,000

= Gross profit

$200,000

40%

− Operating expenses (rent, marketing, salaries)

−$120,000

= Operating profit

$80,000

16%

− Interest

−$10,000

− Tax

−$14,000

= Net profit

$56,000

11.2%

Notice how gross profit, operating profit, and net profit, all show different things for the reader. Each step shows much how much money is being subtracted, and for what reason.

Term

Subtracts

Indication

Gross profit

Direct costs only

How well the company makes and prices its products

Operating profit

Direct costs and running costs

How well the whole business runs day to day

Net profit

Everything, including interest and tax

What is left for owners

Sometimes, the numbers can look 'mismatched', where one is fat and the other is thin. Two possible things that might be the case"

  • High gross margin, thin net margin. This is when the company makes products cheaply, but spends heavily on things like marketing or R&D (which is not included in the COGS).

  • Modest gross margin, solid net margin. This reads as a lean and high-volume business with very low running costs, such as an efficient discount retailer, for example.

How investors use gross profit and gross margin

There are things that investors usually do when reading gross profit numbers. Take them as tips, not advice.

Read the trend, not one year

Since one year of data can mislead, you may want to look at three to five years, or sometimes beyond. Apple's total gross margin percentage, for example, rose from 46.9% in fiscal 2025 to 48.8% in fiscal 2026.

Look closer on the products

Companies often sell different things with different margins. Apple's fiscal 2026 10-K reports a 39.3% gross margin on Products and 76.2% on Services. If Services grows faster than Products, Apple's total margin rises, even if neither business changed. Remember to check these details.

The limits of gross profit

Gross profit cannot tell us everything, as it has its own limitations. It does not show:

  • Operating costs, interest or tax

  • Spending on equipment and buildings (capital spending)

  • How much real cash the company generates

Also keep in mind that companies do classify costs differently, and inventory accounting can be different between companies, too.

FAQ

Is gross profit the same as revenue?

No. Revenue is total sales before any cost, while gross profit is what is left after subtracting the costs of those sales.

Can gross profit be negative?

Yes.

Is gross profit the same as gross income?

Not exactly, since "gross income" often appears in tax settings and can mean something different.

Is a higher gross margin always better?

Not always. Always compared it first, with similar companies from the same industry.

Where do I find gross profit in a 10-K?

Open the income statement and look for a gross profit or gross margin line. If there is none, subtract cost of sales.

Sources

Add as a preferred source on Google

Disclaimer

Gotrade is the trading name of Gotrade Securities Inc., which is registered with and supervised by the Labuan Financial Services Authority (LFSA). This content is for educational purposes only and does not constitute financial advice. Always do your own research (DYOR) before investing.


Sindhu Partomo
Written by
Sindhu Partomo
Sindhu Partomo is a copywriter and content writer with 8+ years of experience in agencies, B2B, and SaaS. He has been writing about business and finance since 2023, and holds a bachelor degree from University of Indonesia.
Read more

Related Articles

Welcome Reward up to $1,888

Create an account and trade US stocks on Gotrade

Download app

*Terms & conditions apply