Margin calculator

Enter revenue and cost to see your profit and what percentage of revenue you keep.

Enter revenue and cost to see your margin.

Everything is worked out in your browser, and nothing you type is sent anywhere.

What the result means

Margin is the share of each sale you keep after costs. A 36% margin means 36 of every 100 in revenue is profit.

Use cost of goods as the cost and the answer is your gross margin: what is left after paying for the products themselves, before ads, wages and rent. Use all your costs and it is your net margin.

The formula

Margin = (revenue − cost) ÷ revenue × 100

A worked example

A shop takes 50,000.00 in sales and its costs come to 32,000.00. That leaves a profit of 18,000.00, and 18,000.00 ÷ 50,000.00 gives a margin of 36.00%.

The gross margin formula in Google Sheets

Keep your Shopify revenue current in Google Sheets, refreshed on a schedule.

Start free trial

30 days of Plus, free from sign-up. No card needed.

Sign in with Google or a work or school Microsoft account.

Add to Google Sheets

Prefer to stay in Google Sheets? Add the add-on and start from the Extensions menu.