Tools · Calculator
Profit margin calculator
Work out gross, operating and net margin from figures you enter, or load them for a covered company from its latest 10-K.
An illustration of the arithmetic. The calculator divides each profit figure by revenue. Presets come from the company's latest 10-K; a margin on its own doesn't say whether a company is doing well.
The formulas
Gross margin = gross profit ÷ revenue × 100
Operating margin = operating income ÷ revenue × 100
Net margin = net income ÷ revenue × 100
A worked example
Apple's 10-K for fiscal 2025 reports revenue of $416.2B, gross profit of $195.2B, operating income of $133.1B and net income of $112.0B. That's a gross margin of 46.9%, an operating margin of 32.0% and a net margin of 26.9%.
Source: Apple 10-K for fiscal 2025, filed Oct 31, 2025
Reading the result
Gross, operating and net margin explains each layer of cost and compares operating margins across 76 companies.
Common questions
How do you calculate profit margin?
Divide the profit figure by revenue and multiply by 100. Apple's net income of $112.0B on revenue of $416.2B in fiscal 2025 is a net margin of 26.9%. Source: Apple 10-K for fiscal 2025.
What is the difference between gross, operating and net margin?
Gross margin takes out only the cost of what was sold. Operating margin also takes out research, selling and administrative costs. Net margin takes out everything, including interest and taxes.
Why are some boxes empty for some companies?
The calculator only loads figures the company tags in its 10-K. Many companies don't report a gross profit line, and banks don't report operating income, so those boxes stay empty unless you type a figure in.
Can a margin be negative?
Yes. If costs are larger than revenue at that level, the profit figure is a loss and the margin is negative.
Is a higher margin better?
Margins mostly reflect the industry. A grocer and a software company can both be run well with very different margins, so comparisons say most within an industry or for one company over time.
Disclosures
- Editor holdings
- The editor holds shares of Tesla (TSLA) in a long-term retirement account. The editor holds no position in any other company named on this page. As of Oct 25, 2026.
- Compensation
- Nobody paid for this calculator. No affiliate links on this calculator.
- Sources
- Each company's own SEC filings, linked next to each number.
- Last updated
- Oct 26, 2026
General education, the same for every reader. Not a recommendation to buy, sell or hold any security, and it doesn't consider your situation.
More in Learn and Tools · Methodology & Disclosures explains where every number comes from.