Skip to main content

Profit and Loss Calculator

Subtract a flexible list of expenses from revenue to get net profit, loss, and margin %.

Written by Golam Rabbani, Founder & Lead Engineer

Expenses

How to use this profit and loss calculator

  1. Enter total revenue for the period and pick a currency.
  2. List each expense by name and amount; press "+ Add expense" for more rows.
  3. Press Calculate to see total expenses, net profit (or loss), and net margin.
  4. Each line is shown in the result so you can audit which expenses drove the bottom line.
  5. Use Copy to grab the summary, or Reset to start a new period.

About this profit and loss calculator

A profit and loss statement (income statement) subtracts every expense from revenue to reveal net profit. The formula the tool implements is: total expenses = Σ expense lines; net profit = revenue − total expenses; net margin % = net profit ÷ revenue × 100. This three-line structure is the simplified single-step income statement laid out in the U.S. SEC's Investor.gov "How to Read a 10-K" guide and matches IFRS / U.S. GAAP presentation rules for small-business income statements.

Worked example: revenue USD 15,000 for the month. Expenses: cost of goods sold USD 6,000, rent USD 2,000, marketing USD 1,500, payroll USD 4,000. Total expenses = 13,500. Net profit = 15,000 − 13,500 = USD 1,500. Net margin = 1,500 ÷ 15,000 × 100 = 10.00%. If the numbers flip and expenses exceed revenue, the calculator reports a net loss instead of a profit. Currency is a label only — there is no exchange-rate lookup — so use the same currency throughout.

FAQ

What is the formula for net profit?
Net profit = revenue − total expenses. Net margin % = net profit ÷ revenue × 100. The calculator sums all expense lines you enter to get total expenses.
How is this different from a gross-margin calculation?
Gross margin subtracts only the cost of goods sold (COGS). A profit-and-loss statement subtracts every expense — COGS plus operating expenses, payroll, rent, marketing, etc. — to reach net profit.
Does the calculator include taxes and interest?
Only if you add them as expense lines. The tool sums whatever you enter — list "Income tax" and "Interest expense" as their own lines if you want an after-tax figure.
What if revenue is zero?
The calculator still reports the loss (total expenses, negated) but skips net margin %, because dividing by zero is undefined.
How many expense lines can I add?
As many as you need. Press "+ Add expense" for additional rows. Blank lines are ignored.
Is my financial data sent anywhere?
No. The calculator runs entirely in your browser. Revenue, expense names, and amounts stay on your device.