Refund rate by traffic source: formula and worked example
By Devendra Variya, co-founder of Virling. Published 2026-11-24.
Refund rate by traffic source is the share of the payments each source brought that were later refunded. To get it, credit every payment to the visit that led to it, then divide each source's refunded payments by all of its payments in the same period. A refund belongs to the source of the original sale, however late it comes. One refund rate for the whole business tells you how many buyers changed their mind. Split by source, it tells you where those buyers came from.
The two halves usually sit apart. Your store or billing page knows which payments were refunded, and your analytics knows where visitors came from, often without hearing about the refund.
The formula
There are two versions, and they answer different questions:
refund rate by count = source's refunded payments / source's payments
refund rate by revenue = source's amount refunded / source's gross revenue
- Count says how many buyers. A payment refunded in whole or part counts as one refunded payment.
- Revenue says how much money. Only the amount given back counts, so a partial refund weighs less. When the two rates differ, refunds are landing on larger or smaller payments than average, or many of them are partial.
- Use the date of the payment. A refund in March for a January sale belongs to January. Counting it in March makes a source you have already stopped look bad, and a new one look worse than it is.
- Keep the source fixed. A buyer who came from an ad and returned through a search to ask for their money back still belongs to the source credited with the sale.
The refund rate calculator works out both rates and net revenue. Run it once per source.
Why gross revenue hides refunds
Gross revenue is counted when the sale happens, and the refund comes days or weeks later. A report that records the sale and never hears about the refund keeps showing money you no longer have. The error is not spread evenly either: it is largest for the sources that bring the most refunds.
- The promise was too big. An ad or a post that says more than the product does sells well until people try it.
- The discount did the selling. Deal sites and codes shared far beyond their audience reach people who wanted the price more than the product. See discount code attribution and coupon site revenue tracking.
- The fit is wrong. In a store that is the wrong size, color or delivery country. In SaaS it is a missing feature, or a plan for a bigger or smaller team.
- The purchase was an impulse. A quick tap from a feed is easier to regret than a purchase after reading three pages.
Refunds also cost more than the amount returned. Many payment providers keep their fee, and a store may pay for shipping both ways. The net revenue calculator takes discounts, refunds, chargebacks and fees off gross sales. Refunds also lower what each order is worth; see average order value by traffic source. A buyer who goes to their bank instead of asking you becomes a chargeback, which usually adds a dispute fee and counts toward card network limits: see the chargeback rate calculator.
A worked example
Example only: made-up numbers for an imaginary store, not results from a real business. One month of payments, with refunds given since on those same payments:
| Channel | Payments | Gross | Refunded payments | Rate by count | Amount refunded | Rate by revenue | Net |
|---|---|---|---|---|---|---|---|
| Paid | 200 | $12,000 | 36 | 18.0% | $2,400 | 20.0% | $9,600 |
| Organic search | 160 | $10,400 | 8 | 5.0% | $416 | 4.0% | $9,984 |
| 90 | $5,400 | 3 | 3.3% | $135 | 2.5% | $5,265 | |
| All | 450 | $27,800 | 47 | 10.4% | $2,951 | 10.6% | $24,849 |
By gross revenue Paid is first, $1,600 ahead of organic search. By net revenue search is first, by $384. Paid brought 43% of gross and 81% of the money refunded ($2,400 of $2,951), so the blended 10.6% describes none of the three channels.
Now add cost. If the ads behind Paid cost $9,000, gross says they returned $12,000, or $1.33 per dollar. Net says $9,600, or $1.07, before product costs and fees. That is close to the line where a budget should shrink, and gross gave no hint of it. The answer may not be to cut the ads: 36 refunds from one channel are worth reading one by one, because a single misleading ad or product page could explain most of them.
How to read Refunded on the Channels card
Virling joins each payment to the visits before it and credits the payment, after refunds, to one of them: by default, the latest visit in the last 90 days that was not Direct. On the dashboard, the Channels card lists visitors, revenue and revenue per visitor for each channel, and Refunded next to them.
- Refunded is a rate by count: the share of a row's payments that were refunded in whole or part. A dash means none.
- Revenue in the same row is already net. Do not take refunds off a second time. Read revenue for what you keep, and Refunded for how much trouble it came with.
- Lost disputes are in it. Virling does not store disputes apart from refunds: a lost dispute counts as a refund where the provider reports it, and a dispute still open does not count.
- Narrow it down. The Source and Campaign tabs show the same figure per site, post and UTM campaign, so you can find the one ad or code behind a high channel.
- Open the refunds. On the Payments page, filter by refunded and open a payment to see the visits before it.
- Use a wide window. The column is hidden on phones and on narrow cards.
Every card is described in read your dashboard, and the store setup, from script to visitor ID on each order, is in set up an online store. Virling reads payments and refunds from your provider and never creates, changes or refunds anything.
For SaaS: refunds per payment or per customer
The Channels card counts payments, and renewals are payments too. They keep the channel of the customer's first payment, so a channel with long-standing customers has many payments, few of them refunded. As a made-up example, 20 customers who each paid 5 times made 100 payments. If 3 of them had one payment refunded, Refunded shows 3.0%, while 15% of the customers asked for money back.
For the second number, open the Retention page. Its Refund rate is the share of customers acquired with any refund, grouped by the channel, referrer and campaign of their first payment. See retention by channel. A customer who takes a refund may also leave, so read it with churn by acquisition channel and LTV by acquisition channel. Some customers leave without asking for anything back, when a renewal charge fails; put a figure on MRR lost to failed renewals and on what recovering more of them would save.
Before you act on a refund rate
- Read the counts. With 10 payments, one refund is 10 points. In the example, by a standard 95% interval (Wilson), Email's 3 of 90 fits a true rate from about 1% to 9% and search's 8 of 160 from about 3% to 10%, so the example cannot rank those two. Paid's 36 of 200 fits about 13% to 24%, which is clearly higher.
- Let the refund window pass. If buyers have 30 days to return, last week's payments have not had time to be refunded and every source looks good. Set the date range to a month whose window has closed.
- Compare like with like. A source that sells mostly one product carries that product's refund rate. Check whether the source or the product is the problem.
- Set it against cost. A channel with more refunds can still be your best after them. Compare net revenue with spend, as in CAC by channel.
What to check when the numbers look wrong
- A refund is not showing. Refunds arrive at different speeds. On Shopify they show within a minute or two, and on WooCommerce within 6 hours. Paddle, LemonSqueezy and Creem payments from the last 60 days are read again every 6 hours. Each provider has its page in payments.
- Last month's revenue went down. A refund lowers the revenue of the original payment, so a past month can shrink after it ends.
- Refunds have no channel. A payment that was not joined to a visit is Unattributed, and so is its refund. See Unattributed revenue and link checkout to visits.
- Your own tests are counted. A live test payment you refunded counts as a refunded payment for the source you tested with. Use a tag such as
utm_source=testso it stays apart.
Frequently asked questions
What is refund rate by traffic source?
It is the share of payments that were refunded, in whole or part, split by the traffic source credited with each payment. A refund counts against the source that brought the original sale, so you can see which sources bring buyers who keep what they bought.
How do I calculate refund rate by traffic source?
Credit each payment to a source, then divide the source's refunded payments by all of its payments in the same period. For the money version, divide the amount refunded by the gross revenue of the same payments. Count each refund in the period of the original payment, not the day the money went back.
Why do some traffic sources have more refunds?
Buyers arrive with different intent. An ad that promises more than the product does, a deal site or a discount code shared far beyond its audience can bring buyers who change their mind, while someone who searched for what you sell is more likely to know what they are getting.
Should I compare sources on gross or net revenue?
Net. Gross revenue counts money you gave back, so a source with many refunds looks bigger than it is. Compare net revenue against what the source cost, and keep the refund rate next to it to see why the two differ.
Do chargebacks count as refunds?
They are different things: you choose to give a refund, while a chargeback is taken back through the card issuer and usually adds a fee. In Virling, a lost dispute counts as a refund where the payment provider reports it, and a dispute still open does not count.
How does Virling calculate the Refunded figure?
It is the share of a row's payments in the date range that were refunded in whole or part. A dash means none. It counts payments, not dollars, so a small partial refund counts the same as a full one, while the revenue in the same row is net of the amount actually refunded.
See which channels bring buyers who keep what they buy
Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.