Skip to content

How net profit is calculated

The exact formulas for revenue, gross profit and net profit.

Every report in NexRetain (Dashboard, P&L, email reports) uses the same three-step calculation.

1. Revenue

Revenue = Gross sales − Discounts − Returns + Shipping charged

Gross sales is the value of items sold before discounts. Returns are the amounts refunded. Shipping charged is what customers paid for shipping. Taxes you collect are left out by default; you can count them in Calculation preferences, which adds "+ Taxes collected".

2. Gross profit

Gross profit = Revenue + Tips − Product costs − Shipping costs − Transaction fees

These are the costs of fulfilling orders: what the products cost you, what you paid to ship them, and the payment fees.

3. Net profit

Net profit = Gross profit − Ad spend − Custom costs

Ad spend includes connected ad accounts and any amount you entered by hand. Custom costs are your other expenses, such as apps, staff and rent.

Where each cost comes from

  • Product costs: Cost of goods, or the estimated % for products without a cost.
  • Shipping costs: your Shipping costs rules, or the fallback cost per order.
  • Transaction fees: the fee Shopify reported, your saved gateway rate or your default %, plus Shopify’s third-party fee where it applies.
  • Ad spend: connected accounts, converted to your store currency daily, plus other ad spend per month.
  • Custom costs: Custom costs, with monthly amounts spread across the days of the month.

Didn’t find what you need? Email support@nexretain.com or contact us.