How to calculate profit
Learn how to calculate profit using gross, operating and net profit formulas, with a worked example.
Published Monday 17 August 2026
Table of contents
Key takeaways

- Profit is the money left over after subtracting all expenses from revenue, and it shows whether your business is financially healthy.
- The three main types of profit are gross profit, operating profit and net profit, each measured at a different stage of your income statement.
- Calculating profit regularly helps you set prices, control costs and make confident decisions about your business.
- Profit margin expresses profit as a percentage of revenue, making it easier to compare performance across periods or against other businesses.

What is profit?

Profit is the amount of money your business keeps after paying all expenses. If revenue exceeds costs, your business earns a profit; if costs exceed revenue, it records a loss.
Tracking profit helps you understand whether your pricing covers your costs and whether your operations generate enough cash to sustain and grow the business. For small business owners, knowing your profit figure guides decisions on hiring, purchasing stock or investing in new equipment.
The profit formula
The core formula for profit is straightforward:
Profit = Revenue – Expenses
Revenue is the total income your business earns from selling goods or services before any costs are deducted. Expenses fall into two broad categories:
- Fixed costs: expenses that stay constant regardless of sales volume, such as rent, insurance and salaries
- Variable costs: expenses that rise or fall with production or sales, such as raw materials, packaging and shipping
By separating fixed and variable costs, you gain clearer insight into how changes in sales volume affect your bottom line.
Types of profit: gross, operating and net
Businesses track several profit figures, each revealing a different layer of financial performance. The three most common are gross profit, operating profit and net profit.
- Gross profit: revenue minus the cost of goods sold (COGS). COGS includes direct costs tied to producing your product or delivering your service, such as raw materials and manufacturing labour. This figure shows how efficiently you produce what you sell, and it feeds into your gross profit margin.
- Operating profit: gross profit minus operating expenses. Operating expenses cover day-to-day running costs like rent, utilities, marketing and administrative salaries. This figure shows how efficiently you run the overall business before accounting for interest and tax.
- Net profit: operating profit minus interest payments and tax. Also called the bottom line, net profit is the final amount left for reinvestment or distribution to owners.
Monitoring all three helps you pinpoint where money is being spent and where improvements would have the greatest impact.
How to calculate profit step by step
Follow these seven steps to work out your gross, operating and net profit.
- Total your revenue. Add up all income from sales, services and any other sources for the period you are measuring.
- Calculate your cost of goods sold. Sum the direct costs of producing the goods or services you sold, including materials and direct labour.
- Subtract COGS from revenue to get gross profit. This shows how much you earn before overhead costs.
- List your operating expenses. Include rent, utilities, marketing, insurance and administrative wages.
- Subtract operating expenses from gross profit to get operating profit. This reflects the profit generated by core business activities.
- Deduct interest and tax. Include any loan interest payments and estimated income tax for the period.
- The result is your net profit. This is the money available to reinvest in the business or distribute to owners.
Worked example
Imagine you run a small bakery in Kuala Lumpur. In one month your figures look like this:
- Revenue: RM 50,000
- COGS (flour, sugar, packaging): RM 18,000
- Gross profit: RM 50,000 – RM 18,000 = RM 32,000
- Operating expenses (rent, utilities, wages, marketing): RM 20,000
- Operating profit: RM 32,000 – RM 20,000 = RM 12,000
- Interest and tax: RM 2,000
- Net profit: RM 12,000 – RM 2,000 = RM 10,000
At the end of the month, RM 10,000 remains for reinvestment or personal drawings. This example shows how each layer of profit narrows down to the final amount you keep.
Profit vs profit margin
Profit is an absolute number in ringgit, while profit margin expresses that number as a percentage of revenue. Margin makes it easier to compare profitability across periods or against competitors of different sizes.
The two most common margin calculations are:
- Gross profit margin = (Gross profit ÷ Revenue) × 100
- Net profit margin = (Net profit ÷ Revenue) × 100
Using the bakery example above, the gross profit margin is (RM 32,000 ÷ RM 50,000) × 100 = 64%. The net profit margin is (RM 10,000 ÷ RM 50,000) × 100 = 20%. Tracking margin over time shows whether your profitability is improving or declining relative to sales, and comparing several profitability ratios gives you a fuller picture of financial health.
How to improve your profit
Increasing profit comes down to earning more revenue, reducing costs or doing both. Consider these levers:
- Raise prices: review your pricing to ensure it reflects your costs and the value you provide
- Increase sales volume: attract new customers or encourage repeat purchases through marketing and loyalty programmes
- Reduce COGS: negotiate better rates with suppliers or find more cost-effective materials without sacrificing quality
- Cut operating expenses: audit recurring costs like subscriptions, utilities and rent to identify savings
- Improve cash flow: invoice promptly and follow up on overdue payments so cash is available when you need it
Small, consistent improvements across several areas often have a larger combined effect than a single dramatic change.
Track your profit with Xero
Understanding profit gives you the clarity to price confidently, control costs and plan for growth. Accounting software can automate the calculations and present your gross, operating and net profit in real-time reports.
Xero brings your revenue and expenses together in one place, so you always know where your business stands. Get one month free and see how simple tracking profit can be.
FAQs on calculating profit
Below are common questions about calculating and interpreting profit for your business.
What is the difference between gross profit and net profit?
Gross profit is revenue minus the cost of goods sold, showing how much you earn from production alone. Net profit is what remains after all expenses, interest and tax, representing the actual money available to reinvest or withdraw.
How often should I calculate profit?
Monthly calculations give you timely insight into trends and help you respond quickly to changes. Quarterly and annual reviews are useful for tax planning and longer-term strategy.
Can a business have positive gross profit but negative net profit?
Yes. If operating expenses, interest and tax exceed gross profit, the business records a net loss even though it earns money on each sale. This signals that overheads or debt costs need attention.
Why is profit margin more useful than profit alone?
Profit margin converts profit into a percentage, allowing you to compare performance across time periods or with other businesses regardless of size. A rising margin indicates improving efficiency.
How does tracking profit help with pricing decisions?
When you know your costs and target margin, you can set prices that cover expenses and deliver a healthy return. Regular profit reviews reveal whether current prices meet your goals or need adjustment.
Related terms
Learn more about calculating profit
Handy resources
Advisor directory
You can search for experts in our advisor directory
Profit & Loss template
Download Xero’s profit and loss statement template to show how much money you business is making
Financial reporting
Keep track of your performance with accounting reports
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.