Get 80% off your plan for your first 3 months*

Get 80% off your plan for your first 3 months.

How to calculate profit

Learn how to calculate gross, operating and net profit, with formulas and a worked rupiah example.

Published Monday 17 August 2026

Table of contents

Key takeaways

Gross profit formula shows that revenue minus the cost of goods or services sold equals gross profit.
  • Profit is the money remaining after you subtract all expenses from your revenue, and it differs from revenue itself or overall profitability ratios.
  • Gross profit, operating profit and net profit each measure a different layer of your business finances, from production costs through to final earnings.
  • Calculating profit regularly helps you spot trends, set prices and make informed decisions about where to cut costs or invest further.
  • Using accounting software that tracks income and expenses in real time makes profit calculations faster and more accurate.
Operating profit formula shows that gross profit minus operating expenses equals operating profit.

What is profit?

Profit formula shows that revenue minus the cost of goods or services sold equals gross profit. And gross profit minus operat

Profit is the amount of money your business keeps after subtracting all costs from total revenue. If your revenue is the money coming in, profit is what remains once you pay for goods, services and other expenses.

Revenue and profit are not the same. Revenue is your total sales income before any deductions, while profit reflects what you actually earn. Profitability, on the other hand, describes how efficiently your business converts revenue into profit, often expressed as a ratio or percentage.

The three types of profit

Businesses track profit at different stages to understand where money is gained or lost. Each type shows a specific layer of your financial performance.

Gross profit

Gross profit measures how much you earn after covering the direct costs of producing your goods or services. The formula is revenue minus cost of goods sold (COGS). This figure shows whether your core products or services are profitable before other expenses come into play. You can learn more about what drives this number in a guide on gross profit margin.

Operating profit

Operating profit goes a step further by subtracting day-to-day operating expenses from gross profit. These expenses include rent, utilities, salaries and marketing costs. The formula is gross profit minus operating expenses. This figure reveals how well your business runs on a daily basis, independent of financing and tax obligations.

Net profit

Net profit is the bottom line, the money left after all costs, including interest and taxes, have been paid. The formula is operating profit minus interest and taxes. This figure represents your true earnings and is the number most lenders and investors examine when assessing financial health.

What you need before you calculate

Accurate profit calculations start with reliable data. Gather the following figures from your records before running the numbers.

  • Revenue: the total income from sales of goods or services during a specific period.
  • Cost of goods sold (COGS): the direct costs tied to producing what you sell, such as raw materials and manufacturing labour. For a deeper explanation, see this guide on cost of goods sold. You can also explore how to work out these figures with the cost of sales calculation guide.
  • Fixed expenses: costs that stay the same regardless of output, such as rent, insurance and loan repayments.
  • Variable expenses: costs that rise or fall with production volume, such as packaging and shipping.

How to calculate profit step by step

Follow these steps to calculate gross profit, operating profit and net profit in order. Each step builds on the previous result.

  1. Determine your total revenue for the period.
  2. Subtract cost of goods sold from revenue to find gross profit.
  3. Subtract operating expenses from gross profit to find operating profit.
  4. Subtract interest and tax from operating profit to find net profit.

Worked example in rupiah

This example uses illustrative figures to show how each profit type is calculated for an Indonesian small business.

Imagine your business earns Rp 200,000,000 in revenue over a quarter. You spend Rp 120,000,000 on COGS, leaving a gross profit of Rp 80,000,000. Operating expenses such as rent, salaries and marketing total Rp 40,000,000, so operating profit is Rp 40,000,000. After paying Rp 5,000,000 in interest and Rp 5,000,000 in tax, net profit comes to Rp 30,000,000.

  • Revenue: Rp 200,000,000
  • COGS: Rp 120,000,000
  • Gross profit: Rp 80,000,000
  • Operating expenses: Rp 40,000,000
  • Operating profit: Rp 40,000,000
  • Interest: Rp 5,000,000
  • Tax: Rp 5,000,000
  • Net profit: Rp 30,000,000

Profit margins as a percentage

Profit margins convert raw profit figures into percentages, making it easier to compare performance across periods or against competitors. Two common margins are gross margin and net margin.

Gross margin equals gross profit divided by revenue, multiplied by 100. Using the example above, Rp 80,000,000 divided by Rp 200,000,000 equals 0.4, or 40%. This percentage shows how much of each rupiah earned goes toward covering non-production costs and generating profit.

Net margin equals net profit divided by revenue, multiplied by 100. In the example, Rp 30,000,000 divided by Rp 200,000,000 equals 0.15, or 15%. This percentage reveals the share of revenue that becomes actual earnings after all obligations are met. For more on tracking and improving these figures, explore a guide on measuring profitability.

Why calculating profit matters and how to improve it

Knowing your profit tells you whether your business is financially healthy. Lenders, investors and partners often request profit figures before extending credit or entering agreements. Regular profit tracking also helps you spot trends early, whether expenses are creeping up or certain products are underperforming.

Several levers can boost profit over time. Increasing sales volume spreads fixed costs across more units, raising margin. Reviewing pricing ensures you capture value without driving customers away. Reducing costs, whether by negotiating supplier rates or cutting unnecessary expenses, directly improves the bottom line. For a broader view of financial performance, consider reviewing profitability ratios alongside raw profit figures.

Calculate profit with confidence using Xero

Xero accounting software tracks your income and expenses automatically, giving you up-to-date profit and loss reports whenever you need them. With bank feeds, invoicing and expense management in one place, you spend less time on manual calculations and more time running your business. To see how it works for your finances, get one month free and start tracking profit with clarity.

FAQs on calculating profit

Below are answers to common questions about profit and how to calculate it.

What is the formula to calculate profit?

The basic formula is revenue minus total expenses. For more detail, calculate gross profit as revenue minus COGS, then subtract operating expenses to find operating profit, and finally subtract interest and tax to reach net profit.

What's the difference between gross, operating and net profit?

Gross profit accounts only for direct production costs, operating profit also removes day-to-day business expenses, and net profit subtracts interest and taxes as well. Each layer gives a clearer view of where your money goes.

What is a good profit margin?

A good margin depends heavily on your industry, business model and costs. Rather than chasing a single number, compare your margin against businesses similar to yours and track whether it improves over time.

What is cost of goods sold (COGS)?

COGS includes direct costs of producing goods or services, such as raw materials, manufacturing labour and packaging. It does not cover indirect costs like rent or marketing.

Is profit the same as cash flow?

No. Profit measures revenue minus expenses on paper, while cash flow tracks the actual movement of money in and out of your accounts. A business can be profitable yet still face cash shortages if payments are delayed.

Learn more about calculating profit

Handy resources

Advisor directory

You can search for experts in our advisor directory

Find an advisor

Profit & Loss template

Download Xero’s profit and loss statement template to show how much money you business is making

Get the free template

Financial reporting

Keep track of your performance with accounting reports

Find out more

Disclaimer

This glossary is for small business owners. The definitions are written with their requirements in mind. More detailed definitions can be found in accounting textbooks or from an accounting professional. Xero does not provide accounting, tax, business or legal advice.