TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is total revenue? Formula and how to reconcile it

Total revenue is price times quantity sold, before costs. The formula, how price changes move it, why an analytics total differs from finance (tax, shipping, refunds, currency), and a month reconciled line by line.

Emma Collins Reviewed by Chloe Morgan Also called total sales revenue Last updated Nov 29, 2026 Glossary

Quick answer

Total revenue is all the money a business earns from selling goods and services in a period, before costs are subtracted: price × quantity for each product, summed. In analytics it is the sum of revenue events, so tax, shipping, refunds and currency rules decide whether it matches finance.

Formula: Total revenue = Σ (price_i × quantity_i); analytics view: purchase revenue + subscription revenue + ad revenue (− refunds, if the report nets them)

What is total revenue?

Total revenue is all the money a business earns from selling its goods and services in a period, before any costs are subtracted. In economics it is price times quantity sold: OpenStax's Principles of Economics puts it as "total revenue is price times the quantity" sold. In a company's income statement it is the top line, the figure that expenses, taxes and profit are later taken from.

The definition is simple. The trouble starts when the number on an analytics dashboard, the number in the payment processor and the number in the accounts all claim to be "total revenue" and none of them match. Most of that gap comes from four things: which revenue streams are added, whether refunds are taken off, whether tax and shipping are inside the amount, and which currency and date each order is booked in. This page gives the formula and then shows how to reconcile those numbers.

Total revenue formula

For one product:

Total revenue = price × quantity sold

For several products or services, add each line:

Total revenue = Σ (price_i × quantity_i)

A store that sells 1,200 orders of a $45 bundle earns 1,200 × $45 = $54,000. If it also sells subscriptions, those are a second line: 500 renewals × $12 = $6,000. Total revenue for the month is $54,000 + $6,000 = $60,000.

For an online business that also earns ad income, the analytics version is usually:

Total revenue = purchase revenue + subscription revenue + ad revenue, and some tools then subtract refunds. Google Analytics, for example, defines its total revenue metric as revenue from purchases, in-app purchases, subscriptions and ad revenue, while its purchase revenue metric is shown after refunds. Always check which of the two your report uses.

How price changes affect total revenue

Because total revenue is P × Q, raising the price only raises revenue if quantity falls by a smaller percentage. That is the price elasticity of demand:

  • Inelastic demand (|elasticity| < 1): a price rise increases total revenue.
  • Elastic demand (|elasticity| > 1): a price rise decreases total revenue.
  • Unit elastic (|elasticity| = 1): revenue does not change.

Sample data: the store raises the bundle from $45 to $50 and monthly orders fall from 1,200 to 1,050.

PriceOrdersTotal revenue
Before$451,200$54,000
After$501,050$52,500

With the midpoint method, the change in quantity is −150 ÷ 1,125 = −13.3% and the change in price is 5 ÷ 47.5 = 10.5%, so elasticity is −13.3 ÷ 10.5 = −1.27. Demand is elastic, which is why revenue fell by $1,500 even though each order earns more. Before a price change, compare the expected drop in orders with the price increase in percent, not in units.

What total revenue means in analytics tools

An analytics tool does not read your accounts. It adds up the amount property on events your site, app or server sends, usually a purchase event and a refund event. So its total depends on what you put into those events:

QuestionWhy it changes the totalWhat to decide
Which streams are included?One-off purchases, subscriptions and ad revenue may be separate eventsList every revenue event and whether the report sums it
Are refunds subtracted?Some reports show gross sales, others net of refundsSend refunds as their own event with the original order id
Is tax inside the amount?Sales tax collected for a government is not your revenueSend the amount before tax, or send tax as a separate property
Is shipping inside the amount?Shipping may be booked separately by financeAgree one rule with finance and keep it
Which currency and date?Multi-currency orders are converted at some rate on some dayStore the original currency on every order
Duplicates and test ordersA retried confirmation page can count an order twiceDeduplicate on order id and exclude test orders

On the accounting side, revenue is recognised under ASC 606 in the US and IFRS 15 elsewhere. Both exclude amounts collected on behalf of third parties from the transaction price, and ASC 606-10-32-2A lets a company elect to exclude sales and similar taxes collected from customers. That is the main reason a dashboard summing checkout totals is higher than the finance figure.

Worked example: reconciling one month

Sample data: the store from the formula section closes the month. Finance reports total revenue of $60,000. The analytics dashboard shows $67,920. The purchase event sends the checkout total, which includes 8% sales tax and a $3 shipping fee per order.

LineCalculationAmount
Bundle sales1,200 orders × $45$54,000
Sales tax collected$54,000 × 8%$4,320
Shipping charged1,200 × $3$3,600
Subscription renewals500 × $12$6,000
Analytics total (checkout totals + renewals)54,000 + 4,320 + 3,600 + 6,000$67,920
Less sales tax−$4,320
Less shipping (booked separately by this finance team)−$3,600
Total revenue (finance)$60,000
Less refunds40 bundles × $45 + 50 renewals × $12−$2,400
Net revenue$57,600

The $7,920 gap is fully explained by tax and shipping, and the refund line explains the step from total to net. The fix is not a formula on the dashboard but a decision about what the purchase event's amount means. Here the store changes the event to send the item subtotal before tax and shipping, so the next month's analytics total lines up with finance.

Total revenue vs gross revenue vs net revenue

TermWhat it includesIn the example
Total revenueAll sales of goods and services in the period, before costs$60,000
Gross revenueUsually the same as total revenue; some teams also use it for sales before returns and discounts$60,000
Net revenueTotal revenue minus refunds, returns, allowances and discounts$57,600
Net incomeRevenue minus all costs, interest and taxesNot a revenue figure
Average order valueOrder revenue ÷ orders$54,000 ÷ 1,200 = $45

The words "gross" and "total" are used loosely across companies, so write down your definition next to the report. For the full gross vs net breakdown, including discounts and chargebacks, see gross vs net revenue. For how to break total revenue down by channel, product and cohort, see revenue analytics.

What does annual revenue mean?

Annual revenue is total revenue for a 12-month period, either a fiscal year or the trailing 12 months. It is the sum of the months, not one month multiplied by 12. If the store above earned $60,000 in its best month and between $41,000 and $60,000 in the other eleven, multiplying the best month by 12 gives $720,000 and overstates the year.

For subscription businesses, annual revenue is also different from annual recurring revenue. ARR annualises the current recurring run rate and leaves out one-off sales; annual revenue is what was actually earned in the year.

Common mistakes when calculating total revenue

  • Adding tax and shipping to revenue because they are inside the checkout total.
  • Counting the same order twice when the confirmation page reloads or the server retries.
  • Mixing currencies without converting each order at its own date's rate.
  • Comparing a gross dashboard with a net ledger and treating the refund line as missing revenue.
  • Calling one strong month times 12 "annual revenue".

Total revenue in TapCub

The reconciliation above maps onto All-platform analytics › Business › Commerce & revenue. TapCub records revenue from events you send. It does not process payments or keep accounts.

  1. Send money events from the server. On payment success, send purchase with order_id, revenue and currency; send a refund with the same order id. The order id is the dedupe key, so a retry does not create a second order. Event and property names can be mapped on the Commerce tab of All-platform analytics › Configuration › Business settings.
  2. Decide what revenue means. Send the item subtotal before tax and shipping if you want the dashboard to line up with finance, as in the example.
  3. Read revenue and refunds side by side. The page shows revenue, orders, buyers and average order from purchase rows. Refunds in the same period are reported separately as a count and amount and are not subtracted, so net revenue is revenue minus the refund amount you see next to it.
  4. Check currency. Amounts are converted into the site base currency at the rate on the day of each order, and orders that cannot be converted are called out.

Goal revenue in Web analytics › Goals sums a property on matching events and is not the order ledger, so do not compare the two as one number.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Emma Collins

Product Analyst

Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

How do you calculate total revenue?

Multiply the price of each product by the quantity sold and add the lines: Σ (price × quantity). A store selling 1,200 bundles at $45 and 500 renewals at $12 has total revenue of $54,000 + $6,000 = $60,000 for the month.

Is total revenue the same as net revenue?

No. Net revenue is total revenue minus refunds, returns, allowances and discounts. In the sample month, $60,000 total revenue minus $2,400 of refunds gives $57,600 net revenue. Net income is different again: it subtracts all costs and taxes.

Does total revenue include sales tax?

Not in the accounts. Under IFRS 15 and ASC 606, amounts collected on behalf of third parties are excluded, and US GAAP lets companies elect to exclude sales taxes. An analytics tool will include tax if your purchase event sends the checkout total, which is a common reason it reads higher than finance.

What does annual revenue mean?

Annual revenue is total revenue for a 12-month period, a fiscal year or the trailing 12 months. It is the sum of the actual months, not one month times 12, and it differs from annual recurring revenue, which annualises the current subscription run rate.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics