Calculating Profit: Formula, Revenue, and Cost
Learn how to calculate profit, gross profit, and profit margin using revenue and cost with simple business examples.
Reviewed against our editorial policy and updated when formulas, thresholds, or guidance materially change. Learn more about AYCalculator.
Searching calculating profit means you want to know how much money remains after costs are subtracted from revenue. Profit is one of the most important numbers in any business or side project, whether you are selling products, offering services, or evaluating an investment.
Profit Formula
Profit = Revenue - Cost
This is the simplest version of the profit formula. Revenue is the total money brought in from sales. Cost includes every expense required to earn that revenue, from materials and labor to overhead.
Example 1: Simple Business
Suppose a business earns $8,000 in revenue and spends $5,500 in total costs.
Profit = 8,000 - 5,500 = $2,500
Types of Profit
There are three main types of profit that businesses track:
Gross profit is revenue minus the direct cost of goods sold (COGS). It measures how efficiently a company makes its product.
Gross profit = Revenue - Cost of goods sold
Operating profit is gross profit minus operating expenses such as rent, utilities, salaries, and marketing. It shows how much the core business earns before interest and taxes.
Net profit is what remains after all expenses, interest, and taxes. It is the โbottom line.โ
For everyday calculation purposes โ a freelancer, a small shop, or a side hustle โ profit usually means net profit.
Profit Margin Formula
Profit on its own tells you a dollar amount. Profit margin tells you what percentage of revenue you keep.
Profit margin = (Profit / Revenue) x 100
Using the same example:
2,500 / 8,000 x 100 = 31.25%
A 31% profit margin means you keep $0.31 of every dollar earned.
Example 2: E-Commerce Product
You sell a product online for $45 per unit and it costs you $18 to produce or source, $5 to ship, and you spend $7 in ads to sell each unit.
Total cost per unit = 18 + 5 + 7 = $30
Profit per unit = 45 - 30 = $15
Profit margin = (15 / 45) x 100 = 33.3%
Example 3: Service Business
A freelance designer charges $2,000 for a project. Their cost includes $300 for software licenses and $200 in time for subcontracted help.
Total cost = 300 + 200 = $500
Profit = 2,000 - 500 = $1,500
Profit margin = (1,500 / 2,000) x 100 = 75%
Service businesses often have higher profit margins than product businesses because there is no cost of physical goods.
Gross Profit vs Net Profit: A Quick Comparison
| Metric | Formula | What It Tells You |
|---|---|---|
| Gross profit | Revenue - COGS | Efficiency of production |
| Operating profit | Gross profit - Operating expenses | Core business performance |
| Net profit | Revenue - All expenses | Final take-home amount |
Most small businesses and freelancers focus on net profit first because it reflects what actually stays in their pocket.
What Counts as a Cost?
A common mistake is forgetting some costs when calculating profit. Full costs typically include:
- Raw materials or product purchase cost
- Shipping and delivery costs
- Labor (your own time or paid help)
- Advertising and marketing spend
- Platform fees (Etsy, eBay, Amazon, etc.)
- Software subscriptions used for the project
- Taxes on earnings
If you undercount costs, your profit looks higher than it really is, which can lead to poor pricing decisions.
Breakeven Point
Breakeven is the point where revenue equals costs and profit is zero. It is useful for planning how many units you need to sell.
Breakeven units = Fixed costs / (Price per unit - Variable cost per unit)
Example:
- Fixed costs: $1,000/month (rent, software)
- Price per unit: $50
- Variable cost per unit: $20
Breakeven = 1,000 / (50 - 20) = 33.3 units per month
You need to sell at least 34 units before you make any profit.
Why Profit Margin Matters More Than Raw Profit
Two businesses can both earn $10,000 in profit, but one might have $20,000 in revenue (50% margin) while the other has $200,000 in revenue (5% margin). The first business is far more efficient. Higher margins give more cushion if costs rise or sales drop.
Average profit margins vary widely by industry. Retail typically runs 2โ5%, while software or consulting can run 20โ40% or more.
Common Profit Calculation Mistakes
Forgetting owner labor is the most common mistake for sole traders and freelancers. If you do not count your own time as a cost, profit looks inflated.
Using revenue instead of profit for decisions โ revenue growth is not always profit growth. Selling more can sometimes reduce profit if costs scale faster than revenue.
Confusing markup and margin โ markup is cost ร percentage, while margin is percentage of selling price. They give different numbers from the same inputs.
Using Profit to Make Business Decisions
Once you know your profit and margin, you can:
- Decide whether a product line is worth continuing
- Set minimum prices that ensure profitability
- Compare different revenue streams
- Decide whether to hire or outsource
- Plan for taxes based on realistic net profit
The Bottom Line
To calculate profit, subtract total costs from total revenue. If you want the percentage result, divide profit by revenue and multiply by 100. Track gross, operating, and net profit separately for a clearer picture of where your money actually goes.
Use our Investment Calculator to project returns on any amount you plan to invest or reinvest in your business.
How to Calculate: Step-by-Step Guide
Find revenue
Start with the total money earned from sales or services.
Find total cost
Add the direct and indirect costs linked to earning that revenue.
Subtract cost from revenue
The difference is profit.