Operating Expense Calculator

Add up monthly operating expenses and compare them with revenue and gross profit to get operating income and key ratios.

Finance and MoneyUpdated 2026-11-183 min read
Operating Expense Calculator
Use the same period for revenue and for every expense below.
Direct costs of making the goods or delivering the service.
Include administrative and support staff, not direct production labour.
Total operating expenses
...
Gross profit...
Operating income...
OpEx as a share of revenue...
Operating margin...

What it does

Operating expenses sit between gross profit and operating income on the income statement. The SEC Beginners Guide to Financial Statements explains that these are costs that support the business but cannot be linked directly to producing the goods or services sold. Salaries of administrative staff, marketing and research appear here, while the cost of materials and direct labour appears above the gross profit line.

OpenStax Principles of Finance illustrates the sequence with a retailer. Net sales less cost of goods sold gives gross profit, and deducting rent, utilities, depreciation and indirect salaries from that figure gives income from operations. In its example $60,000 of gross profit less four overhead items leaves $43,000 of operating income.

Two ratios help readers of a statement. The OpEx ratio divides total overhead by revenue and shows what share of each sales dollar goes to running the business. Operating margin divides operating income by revenue and shows what share is left before interest and tax. Neither ratio includes the cost of goods sold in the numerator, so they answer different questions from gross margin.

This page adds the seven common overhead lines for you and computes gross profit, operating income and both ratios. Use one consistent period, such as a month or a quarter, for revenue and for every expense field.

Classification is a judgement call. A cost that one firm treats as overhead may be cost of goods sold for another, and interest and income tax sit below operating income entirely. The tool follows the usual income statement layout rather than the tax treatment of any particular country.

How to use

  1. Enter revenue and cost of goods sold for one consistent accounting period.
  2. Add rent, salaries, utilities, insurance, marketing, depreciation and any other overhead in your own category.
  3. Leave a line at zero if that cost does not apply, and put a cost of goods sold item in the COGS field instead.
  4. Read the total operating expenses first to check that all lines were included.
  5. Look at gross profit and operating income to see how much overhead the business is carrying.
  6. Use the OpEx ratio and operating margin to compare periods or similar businesses of different sizes.

Formula

OpEx = rent + salaries + utilities + insurance + marketing + depreciation + other. Gross profit = revenue - COGS. Operating income = gross profit - OpEx. OpEx ratio = 100 x OpEx / revenue. Operating margin = 100 x operating income / revenue.
OpEx
Total operating expenses for the period in dollars.
revenue
Net sales for the same period in dollars.
COGS
Cost of goods sold, the direct cost of the items or services sold.
Gross profit
Revenue minus cost of goods sold, before overhead is deducted.
Operating income
Gross profit minus operating expenses, also called income from operations.

Interest expense and income tax are deliberately excluded because they fall after operating income on a multi step income statement. When revenue is zero the two percentage ratios are shown as not available rather than as a division by zero. A negative operating income is displayed with a minus sign in front of the dollar amount.

Worked example

Example: a month with $200,000 of revenue

Defaults: $200,000 revenue, $60,000 cost of goods sold and overhead lines of $24,000 rent, $60,000 salaries, $3,000 utilities, $2,000 insurance, $5,000 marketing, $1,500 depreciation and $1,000 other.

  1. Add the overhead lines: 24,000 + 60,000 + 3,000 + 2,000 + 5,000 + 1,500 + 1,000 = $96,500.00.
  2. Gross profit: $200,000 - $60,000 = $140,000.00.
  3. Operating income: $140,000 - $96,500 = $43,500.00.
  4. OpEx ratio: $96,500 / $200,000 x 100 = 48.25 percent of revenue.
  5. Operating margin: $43,500 / $200,000 x 100 = 21.75 percent of revenue.
  6. Salaries are the largest single line at $60,000, which is 62.18 percent of the $96,500.00 total.
  7. The tool shows $96,500.00, $140,000.00, $43,500.00, 48.25 % and 21.75 %.

Reference table

The $96,500.00 of default operating expenses, with each share of the total
ExpenseAmountShare of OpEx
Salaries and wages$60,000.0062.18 %
Rent$24,000.0024.87 %
Marketing$5,000.005.18 %
Utilities$3,000.003.11 %
Insurance$2,000.002.07 %
Depreciation$1,500.001.55 %
Other overhead$1,000.001.04 %

Limits

  • Uses a fixed list of overhead categories, so unusual lines must be folded into other overhead.
  • Excludes interest and income tax, which belong below operating income on the income statement.
  • Depreciation and amortisation are non cash charges, so operating income is not the same as cash flow.
  • Describes one period and ignores seasonality or costs that arrive in large irregular amounts.

Common mistakes

  • Putting cost of goods sold into one of the overhead lines, which understates gross profit.
  • Including loan interest or income tax in operating expenses when they belong further down the statement.
  • Mixing annual revenue with monthly expenses, which makes both ratios meaningless.
  • Treating depreciation as a cash payment when comparing operating income with the bank balance.
  • Using gross sales rather than net sales after returns and allowances when the other figures are net.

Try it yourself

Quick checks. Answers sit tucked under each question.

Revenue is $250,000 and operating expenses are $80,000. What is the OpEx ratio?

$80,000 / $250,000 x 100 = 32.00 percent of revenue.

Gross profit is $120,000 and OpEx is $95,000. What is operating income?

$120,000 - $95,000 = $25,000.00.

Operating income is $27,000 on revenue of $180,000. What is the operating margin?

$27,000 / $180,000 x 100 = 15.00 percent.

Questions

What are operating expenses?

They are the day to day costs of running a business that are not directly tied to producing the goods or services sold, such as rent, administrative salaries and marketing.

How are OpEx and cost of goods sold different?

Cost of goods sold is deducted from revenue first to get gross profit. Operating expenses are deducted from gross profit to get operating income.

Does operating income include interest and tax?

No. It is the profit from normal operations before interest and income tax. Those items are deducted later on a multi step income statement.

What is a good OpEx ratio?

It depends on the industry. Software firms often carry lower overhead relative to revenue than retailers, so compare a company with peers rather than with a single target.

Why is depreciation in operating expenses?

It allocates the cost of long lived assets to the periods that use them, and it is not part of the direct cost of the goods sold. It is still a non cash charge.

Can operating income be negative?

Yes. If gross profit is smaller than operating expenses the result is an operating loss, shown here with a minus sign before the dollar amount.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.