
Multi-Tenant Architecture: 3 Models & 8 Best Practices
Learn how multi-tenant architecture works, compare database isolation models, and explore six components & eight best practices for shared infrastructure.
Revenue leakage is revenue you earned but never collected. See the common causes, how to find and calculate it, real examples, and how to prevent it.
Revenue leakage is the money your business earned but never collected, and most companies have some. A discount that should have ended in March is still on the invoice, a renewal uplift never got applied, or a customer's usage ran past their plan, and nobody billed for it.
It's easy to miss because nothing visibly breaks. The product works, customers stay happy, and the gap only shows up when someone lines up contracts, usage, and invoices and compares them one by one.
Here’s what revenue leakage is, its common causes, and how to find, calculate, and prevent it. This guide also covers the newer leaks in AI and usage-based products, where Stigg runs usage limits and credit ledgers, because those often happen before an invoice exists at all.
Revenue leakage is revenue a business has earned but fails to collect because of billing errors, process gaps, or systems that don't share data. It's different from a lost sale. The customer already bought, the value was already delivered, and the money still never reaches your bank account.
It happens in every industry. A consultant forgets to log two hours, a SaaS company keeps applying an expired promotional discount, and a manufacturer ships an order that never gets invoiced.
The root cause is usually a gap somewhere in a four-step chain: what was delivered, what was tracked, what was billed, and what was collected. Revenue leaks wherever one step doesn't match the one before it.
For subscription businesses, the usual culprits are failed payments, missed renewals, and discount codes that outlived their campaigns. These leave a record, so they can be found and often recovered if someone goes looking.
For AI and usage-based products, the leak often happens before any record is created, and because every request carries real compute cost, the exposure grows with usage.
Revenue leakage is common and expensive. In a BCG survey, 45% of executives said revenue leakage is a systemic problem at their companies.
The same research found that almost three-quarters of companies had no automated revenue assurance processes, which means most leaks get caught by hand, if they're caught at all.
MGI Research puts typical leakage at a minimum of three to five percent of a company's revenue. For a business doing $50 million a year, 3% is $1.5 million that was earned and never collected.
The higher cost is that leakage compounds. A customer billed at the wrong rate keeps being billed at the wrong rate every month until someone notices, and each fix pulls finance and engineering time away from other work.
Most revenue leakage comes from a handful of repeat causes, and they usually overlap. A single leak often starts in sales, passes through a manual handoff, and ends as a billing error.
Wrong rates, missing line items, outdated price lists, and invoices that never get sent all under-collect revenue. They're especially common when invoices are built by hand from spreadsheets or when a pricing change reaches the website before it reaches the billing system.
Contracts often include a renewal date, an annual uplift, or a step-up in the second year. If nothing triggers those terms automatically, renewals lapse or roll over at the old price, and the uplift the customer already agreed to never shows up on an invoice.
A temporary promotional rate or a one-time concession becomes permanent because nobody set an end date. Sales may also approve discounts outside policy, which leaves billing applying terms finance never signed off on.
Usage that runs past a plan limit without an overage charge, add-on features turned on without a plan change, and services delivered outside the contract all count as revenue earned and never billed. It’s also the cause that grows fastest as usage-based products scale.
Expired cards, declined charges, and retries that stop too early turn billed revenue into uncollected revenue. If the retry never succeeds, the leak turns into involuntary churn the next cycle.
When the CRM, the quoting tool, the product, and the billing system each hold a different version of the deal, every handoff is a chance to drop a term. Manual re-entry between those systems is where most of the causes above start.
AI products leak earlier in the chain. Subscription leaks happen downstream, in renewals and payments that leave a clear record. In AI products, the leak usually happens upstream at the point of consumption, where usage runs before anything is recorded or billed.
When usage runs without real-time limits, and credits are tracked loosely, the billing system closes the cycle on numbers that were wrong from the start.
It invoiced what the metering layer reported, so if that layer was asynchronous or reading a stale cache, the billing system did its job with bad data.
Take a hypothetical AI product with 10,000 customers who each make an average of 500 metered calls a day at $0.002 per call, which is 5 million calls a day.
If 3% of those calls slip through without being metered because enforcement runs asynchronously, that's 150,000 unbilled calls and $300 a day, or roughly $109,500 a year from a single failure mode on a single pricing tier.
Most AI products have more than one failure mode, and the number grows with every place the enforcement layer falls short. When the gap turns into a dispute, the conversation also shifts from a billing error to whether the product can be trusted with a real workload.
In AI products, the billing system is usually the last to find out. These are the three places the leak most often starts.
A customer is onboarded with a prepaid credit balance that's consumed across agents, teams, and API keys, all tracked in a database table that made sense at 20 customers and starts drifting at 200.
By month-end, the overages have been absorbed or disputed, and the charge gets waived because explaining it is harder than eating it. A balance without a trustworthy ledger behind it eventually produces a number the customer can dispute, and you can't confidently defend.
A production credit ledger needs:
A hard limit exists in the product, but the check runs asynchronously, or the cache is stale enough that a burst of usage clears before the limit registers. The compute ran, the invoice reflects it, and the customer disputes it because they expected a wall that would stop them.
From their side, the limit failed, but from yours, the usage was real, and neither view helps you collect. At low volume, asynchronous checks are usually fast enough, but with agents generating thousands of events a minute, a few seconds of staleness is enough to let a burst through.
An enterprise customer has five teams sharing one credit allocation. One team burns through the pool by Wednesday, and finance doesn’t see anything until the invoice arrives two weeks later.
The customer signed a contract that assumed per-team caps and real-time spend visibility, and the enterprise account got a workaround because the credit system only worked at the top of the account.
That gap between what sales promised and what the infrastructure can enforce is where this leak comes from.
You find revenue leakage by comparing what should have been billed against what was billed and collected, source by source. Each of these checks targets one of the common causes.
Warning signs that leakage is already happening include margins slipping without a clear cause, customers disputing unexpected overages, credit balances that don't reconcile at month-end, and a growing balance of unbilled revenue.
The revenue leakage formula compares the revenue you should have collected with the revenue you did collect for the same period:
Revenue leakage = Expected revenue − Collected revenue
Leakage rate = (Revenue leakage ÷ Expected revenue) × 100
Expected revenue comes from active contracts plus captured usage at contracted rates. Leave out invoices that simply aren't due yet, since those are timing differences.
Here's a worked example for a hypothetical company's quarter, with $900,000 in contracted subscription revenue and $300,000 in usage at contracted rates:
Expected revenue was $1,200,000 and collected revenue was $1,152,000, so leakage is $48,000, and the leakage rate is 4%. Breaking the total down by cause shows where to start, and here unbilled usage is the biggest single leak.
These short scenarios show how the same problem looks in different business models. The numbers are illustrative.
SaaS subscription. A customer signs a $40,000-a-year contract with a 20% first-year discount, so year one bills at $32,000.
Since nobody sets an end date in billing, the discount carries into year two, and the company leaks $8,000 a year until someone audits the account.
Usage-based AI product. The team launches a premium model, but the credit conversion still uses the rate for the cheaper model. Customers burn credits at the old rate, the invoices look correct, and margin leaks on every premium request.
Professional services firm. A consultant billing $150 an hour forgets to log about two hours a week. Over a year, that's roughly $15,600 in unbilled work from one person, before counting the extra tasks a client asked for outside the statement of work.
Contract amendment. An account adds 50 seats mid-term, and the amendment is signed in the CRM but never reaches the billing system. The customer uses the seats for months before anyone bills for them, and backdated invoices are a hard conversation.
Preventing revenue leakage comes down to making contract terms, usage, and billing agree automatically, so fewer gaps depend on someone catching them by hand.
When an audit turns up a leak that has already cost margin, our profit leakage recovery guide walks through correcting records, reapplying missed charges, and closing the control gap.
Real-time enforcement is the prevention step AI products struggle with most, because it sits in the request path and has to hold up at high volume. Most teams learn these requirements by running into what their current setup can't handle.
Billing systems are built to record and charge what they're told, and they do that well. They aren't designed to make access decisions synchronously in the request path, which is an architectural boundary worth understanding before expecting billing to catch upstream leaks.
The missing piece is a layer between the product and billing that knows in real time what each customer is allowed to consume, tracks consumption with ledger-level accuracy, and enforces limits before overages pile up.
Most teams build that layer themselves first, and that's a reasonable call. A few database tables, some caching, and a middleware check before each request will hold up for longer than most people expect.
The conditions where it stops working are:
Any one of those is manageable on its own, but all of them together, maintained alongside a product that keeps evolving, is where an in-house entitlement layer starts eating more engineering time than it saves.
That's usually the point when teams start looking at dedicated infrastructure.
The leaks covered earlier in this guide, from expired discounts to missed uplifts, can be found and fixed with better processes and connected systems. The AI leaks are harder, because by the time they show up on an invoice, the compute has already run.
Stigg is a usage runtime that sits in your request path and decides what each customer is allowed to consume before the expensive work happens. It works alongside your billing system, with native integrations for Stripe, Zuora, and Airwallex.
Miro, the visual workspace platform, launched a credit-based AI pricing model in under six weeks with Stigg and saved 5,000 engineering hours by not building and maintaining its own system.
With Stigg, engineering teams can:
If you want a quick read on where you stand, pull 20 of last month's highest-usage sessions and trace each one from the product event to the invoice line. If they all land cleanly, your enforcement is doing its job.
If a few don't, the Stigg docs show how the runtime fits next to your billing, or you can talk to a human about your stack.
In business, leakage means value that escapes before it's captured as revenue or profit. Revenue leakage is earned revenue that's never collected, and profit leakage is margin lost to costs that weren't charged or controlled, such as unbilled usage or compute that exceeds what a customer paid for.
Revenue leakage in banking is fee and interest income a bank is entitled to but doesn't collect. Common causes include fees waived without approval, interest or charges calculated on the wrong rate, and service fees that never get applied because product and core banking systems don't sync.
Yes, revenue leakage can happen even if your billing system is working correctly.
Billing systems invoice what they're told, so if the metering layer is asynchronous or limits are enforced too late, the billing system produces accurate invoices from inaccurate inputs. The leak lives upstream of the invoice.
Churn is revenue you stop receiving because a customer leaves or downgrades. Revenue leakage is revenue you fail to collect from a customer who's still active and still consuming. Churn shows up in recurring revenue metrics, while leakage often stays invisible until an audit or a dispute.
A revenue leakage audit is a structured review that compares contracts, usage, invoices, and payments to find revenue that was earned but not billed or collected. It usually samples accounts, reconciles each source against the next, sizes the gap by cause, and assigns fixes.
Revenue leakage is rarely intentional on the customer's side. Most leakage comes from gaps on the seller's side, such as limits that fired too late, discounts that never expired, or usage that ran through a stale cache. In most cases, the customer consumed what the product allowed.
You should start taking revenue leakage seriously earlier than most do.
Enforcement architecture is harder to retrofit than to build well from the start, and the first enterprise deal is a good checkpoint, because that contract is usually the first one with per-team limits and audit expectations the system has to support.