SaaS revenue

SaaS revenue recognition: what your billing data has to remember for ASC 606

Your accountant applies ASC 606. Your billing system decides whether they can. Every rule below needs a fact the invoice has to carry: a service period, a stand-alone price, which line was a setup fee, when a plan changed. Here's the five-step model in billing terms, how subscriptions, setup fees, usage, refunds and upgrades are usually treated, and a deferred revenue schedule you can check by hand, with the data material from chapters 25 and 24.

Not accounting advice. This is how ASC 606 is usually applied to SaaS billing, from KPMG's revenue guides and Stripe's docs, checked on 14 November 2026. Your contracts and your auditor decide the treatment; IFRS 15 is similar but not identical.

Under ASC 606 (Topic 606, the US GAAP revenue standard), a SaaS subscription's fixed fee is usually recognised ratably over the service period, not when the cash arrives (KPMG SaaS Handbook, p. 6). Cash collected before you've delivered the service is a contract liability, which most finance teams call deferred revenue (KPMG, p. 13). A $1,200 annual plan paid on 1 January is $100 of revenue in each month of the year and $1,100 of deferred revenue at the end of January.

The accounting is your accountant's job. The data is yours, and if the billing system didn't keep it, nobody can reconstruct it at year end.

The five steps, in billing terms

Topic 606 runs every contract through five steps (KPMG, pp. 4-7). What each one needs from your billing data:

StepWhat it means for SaaSWhat billing has to keep
1. Identify the contractThe agreement, written or click-through, that creates enforceable rightsContract or subscription ID, acceptance timestamp, term start and end, renewal and cancellation terms
2. Identify the performance obligationsThe distinct things you promised. Hosted access is usually a series of distinct service periods; implementation work may be separate; setup activities that transfer nothing to the customer aren't a promise at allOne line per product, typed: subscription, setup, services, usage
3. Determine the transaction priceWhat you expect to be entitled to: fixed fees, discounts, variable usage. Amounts collected for third parties, such as some sales taxes, are excludedList price, discount, net price, tax as its own field, usage quantities
4. Allocate the priceSplit across obligations by stand-alone selling price, which isn't presumed to be the list priceThe stand-alone price for each product, kept as data, not in someone's head
5. Recognise revenueWhen, or as, each obligation is satisfied; SaaS access is satisfied over timeA service period start and end on every line

The SaaS answer to step 2 comes from the series guidance: a SaaS term of unlimited access "will typically be viewed as a series of distinct service periods (e.g. each day, week or month...)" (KPMG SaaS Handbook, p. 163). That one conclusion drives how usage and upgrades are treated below.

Setup fees

A nonrefundable setup fee is part of the transaction price. If the setup work doesn't transfer a service to the customer (activating the account, configuring billing), it isn't a performance obligation of its own, so the fee is recognised the same way as the rest of the contract's consideration: over the subscription, not on the day you charge it (KPMG SaaS Handbook, Question D20). A $300 setup fee on a 12-month contract is $300 / 12 = $25 a month.

Two variations change that. If the fee pays for real implementation work that is distinct, it's its own obligation and is recognised as that work is done. And if the customer doesn't pay it again on renewal, the fee may give them a material right, in which case part of it is recognised over the period the fee influences their decision to renew, which can be longer than the first term (KPMG, pp. 8-9). What billing has to keep: the setup fee as its own line, linked to the subscription it belongs to.

Usage

Usage fees are variable consideration. Because the SaaS term is a series of distinct periods, Topic 606 lets you allocate variable fees entirely to the period in which the usage happened, if the criteria in paragraph 606-10-32-40 are met, so January's overage is January's revenue (KPMG SaaS Handbook, p. 164). Without that, you'd estimate usage for the whole term and true it up as you went. The licence rules for sales- and usage-based royalties don't apply to SaaS, because no licence is granted (p. 6). What billing has to keep: usage with the timestamp of when it happened, not when you rated it.

Refunds and credits

If you expect to refund some of what you collected, that part isn't revenue: Topic 606 records it as a refund liability, updated every reporting period (ASC 606-10-32-10, reproduced in KPMG's Handbook, p. 311). For a refund you've actually issued, the question is how much of it was already recognised. Stripe's own example: a $120 refund on an annual subscription in its second month reverses $20 of recognised revenue for the first two months, and takes the other $100 out of deferred revenue (Stripe). Credit notes and lost disputes work the same way. What billing has to keep: which invoice line, and which service period, each refund or credit belongs to.

Upgrades in the middle of a term

An upgrade is a contract modification, and Topic 606 has three treatments (KPMG SaaS Handbook, p. 652, quoting ASC 606-10-25-12 and 25-13):

IfThen
The change adds distinct services at their stand-alone priceA separate contract; the original is untouched
The remaining services are distinct from those already deliveredTerminate the old contract and start a new one: what's still deferred plus the new consideration is spread over what's left (prospective)
The remaining services aren't distinctTreat it as part of the old contract, with a cumulative catch-up adjustment to revenue on the day of the change

Because a SaaS term is a series of distinct periods, the months after an upgrade are usually distinct from the months before it, which points to the second row (KPMG SaaS Handbook, p. 164). Which row applies to your contracts is a judgement for whoever signs your accounts; the schedule below uses the second.

Worked example: an annual plan with an upgrade

A customer buys the $1,200 annual plan on 1 January and pays upfront. On 1 July, with six months left, they upgrade to the $2,400 annual plan and pay the prorated difference: ($2,400 - $1,200) x 6 / 12 = $600.

  • January to June: $1,200 / 12 = $100 a month. Deferred revenue falls by $100 a month, to $1,200 - (6 x $100) = $600 at the end of June.
  • On 1 July: $600 still deferred plus $600 of new consideration = $1,200, spread over the 6 months left: $1,200 / 6 = $200 a month.
MonthCashRevenueDeferred revenue at month end
Jan$1,200$100$1,100
Feb$0$100$1,000
Mar$0$100$900
Apr$0$100$800
May$0$100$700
Jun$0$100$600
Jul$600$200$1,000
Aug$0$200$800
Sep$0$200$600
Oct$0$200$400
Nov$0$200$200
Dec$0$200$0
Total$1,800$1,800

Check: 6 x $100 + 6 x $200 = $1,800, which is all the cash. Revenue and cash agree over the year and disagree in every single month, which is the whole point of the schedule. An upgrade in the middle of a month works the same way, with days instead of months.

In code: the schedule

The same schedule, so you can run it against your own contracts. It treats every change prospectively, which is the assumption to confirm.

from decimal import Decimal

MONTHS = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split()


def deferred_schedule(prepaid, term_months, changes=None):
    """Ratable schedule for a prepaid subscription.

    changes: {month_index: extra_consideration}. Each change is treated
    prospectively: what's still deferred plus the new money is spread over
    the months left (ASC 606-10-25-13(a)). Confirm the treatment with
    whoever signs your accounts before you rely on it.
    """
    changes = changes or {}
    deferred = Decimal(0)
    per_month = Decimal(0)
    rows = []
    for m in range(term_months):
        cash = prepaid if m == 0 else Decimal(0)
        cash += changes.get(m, Decimal(0))
        deferred += cash
        if m == 0 or m in changes:
            per_month = deferred / (term_months - m)
        revenue = deferred if m == term_months - 1 else per_month
        deferred -= revenue
        rows.append((MONTHS[m % 12], cash, revenue, deferred))
    return rows


# $1,200 annual plan paid on 1 January; upgrade on 1 July with $600 more.
for month, cash, revenue, deferred in deferred_schedule(
        Decimal("1200"), 12, {6: Decimal("600")}):
    print(f"{month}  cash {cash:>6.2f}  revenue {revenue:>6.2f}  deferred {deferred:>7.2f}")

The last month recognises whatever is left, so rounding on awkward amounts never leaves a few cents stranded in deferred revenue.

What your billing data has to keep

  • A service period (start and end) on every invoice line, including proration lines.
  • Line types: subscription, setup, implementation, usage, tax. Setup and usage are treated differently, so they can't share a line.
  • Stand-alone selling prices per product, versioned, for allocating bundles and discounts.
  • Usage timestamps from when it happened, not when it was billed.
  • Every plan change as an event with its effective date, the old and new price, and the proration amount.
  • Refunds, credit notes and disputes linked to the invoice line and period they reverse.
  • Tax kept apart from the price, since it isn't part of the transaction price.

What Stripe Revenue Recognition does

If you bill on Stripe, Stripe Revenue Recognition builds the schedule and the journal entries from your Stripe data. It treats each invoice line item as its own performance obligation and amortises it evenly over the line's period. A line with no period is recognised in full when the invoice finalises, and a one-off payment made without an invoice is recognised immediately unless you import a schedule for it (Stripe). That's the billing-data rule above, enforced: put periods on your lines. For the upgrade in the example, the original line keeps amortising at $100 a month and the $600 proration line covering July to December adds $600 / 6 = $100 a month, so it also arrives at $200.

The monthly plan costs $25 a month for up to $10,000 of monthly volume and 0.25% above that; annual plans start at $190 a month (Stripe). Its rules are configurable, so it's a tool for applying your accountant's policy, not a substitute for having one.

Pause, resume and cancel, and the accounting question each one raises: what happens to days already paid for. From chapter 24.

Pause, Resume, and Cancel

Chapter 7 covers the three pause models and the case for offering a pause when someone reaches for cancel. What it doesn't cover is the accounting. When a customer pauses, three questions need answers: what happens to the days they've already paid for, what they can still do while paused, and what the first invoice after resume looks like. Get the third one wrong and the pause you offered as a retention tool becomes the reason they leave.

Start with who pauses: seasonal businesses, people between projects, and customers in a cash squeeze who'd rather not lose their data. None of them is angry yet, and that's the point. A pause is a cancellation you got to intercept, so the experience has to be calmer than the cancellation would have been.

Now the billing anchor. The code below does the simple thing: pause stops billing, and resume starts a fresh period from today and charges for it. That's correct if the pause took effect at the end of a paid period, and a surprise if it took effect halfway through one. The customer who paused ten days into a paid month has twenty days they never used, and on resume they're charged again without ever getting them. The customer who paused in June remembers the pause; they don't remember agreeing to a full charge in September.

You have two fixes. Schedule the pause for the current period end, so there's nothing to credit and the resume charge is for time the customer is about to use. Or freeze the anchor: record how long the pause lasted and push the period end out by the same amount, so resume costs nothing until the shifted renewal. Pause-at-period-end is simpler, and it's what most customers assume they agreed to.

Entitlements while paused are a product decision, but make it in code, not in a support macro. The usual shape is read-only access, data retained, no new usage metered, and dunning skipped entirely. A paused customer with a failed card is paused, not past due. The pause method accepts a pause from past due for exactly that reason: it's one of the three exits from a failed payment, and often the kindest one.

The resume date lives in metadata here, and something has to read it. A daily job that resumes anything past its date, and a reminder sent before it fires, are both part of the feature. Without the reminder, the resume charge is the surprise invoice again, only later.

Cancellation is the one place where the previous state matters more than the new one. Look at the line that captures the status before mutating it. An active customer cancelling immediately gets the unused days refunded. A past-due customer cancelling immediately hasn't paid for this period, so a refund computed from the period dates would hand them money for time they never bought. Cancel at period end is the default for a reason: the customer keeps what they paid for, you keep the revenue, and there's nothing to refund.

    async def pause_subscription(
        self,
        subscription_id: str,
        pause_days: int = 30
    ) -> Subscription:
        """Pause subscription - stops billing but can maintain limited access."""
        subscription = await self.db.get_subscription(subscription_id)

        if subscription.status not in [SubscriptionStatus.ACTIVE, SubscriptionStatus.PAST_DUE]:
            raise ValueError(f"Cannot pause subscription in {subscription.status} status")

        subscription.status = SubscriptionStatus.PAUSED
        subscription.paused_at = datetime.now(timezone.utc)
        subscription.metadata['resume_date'] = (
            datetime.now(timezone.utc) + timedelta(days=pause_days)
        ).isoformat()

        await self.db.save_subscription(subscription)
        await self._emit_event('subscription.paused', subscription)

        return subscription

    async def resume_subscription(self, subscription_id: str) -> Subscription:
        """Resume a paused subscription."""
        subscription = await self.db.get_subscription(subscription_id)

        if subscription.status != SubscriptionStatus.PAUSED:
            raise ValueError("Subscription is not paused")

        # Calculate new billing period from today
        now = datetime.now(timezone.utc)
        if subscription.billing_interval == BillingInterval.ANNUAL:
            period_end = now + timedelta(days=365)
        else:
            period_end = now + timedelta(days=30)

        subscription.status = SubscriptionStatus.ACTIVE
        subscription.paused_at = None
        subscription.current_period_start = now
        subscription.current_period_end = period_end

        # Charge for new period
        plan = await self.db.get_plan(subscription.plan_id)
        price = plan.annual_price if subscription.billing_interval == BillingInterval.ANNUAL else plan.monthly_price
        await self._charge_subscription(subscription.customer_id, price)

        await self.db.save_subscription(subscription)
        await self._emit_event('subscription.resumed', subscription)

        return subscription

    async def cancel_subscription(
        self,
        subscription_id: str,
        cancel_immediately: bool = False,
        reason: Optional[str] = None
    ) -> Subscription:
        """Cancel subscription at period end or immediately."""
        subscription = await self.db.get_subscription(subscription_id)
        now = datetime.now(timezone.utc)

        # Capture status BEFORE mutating - refund eligibility depends on it
        previous_status = subscription.status
        subscription.cancelled_at = now
        subscription.metadata['cancellation_reason'] = reason

        if cancel_immediately:
            # Refund unused time only if the subscription was actively billing
            if previous_status == SubscriptionStatus.ACTIVE:
                refund = self._calculate_refund(subscription)
                if refund > 0:
                    await self._process_refund(subscription.customer_id, refund)

            subscription.status = SubscriptionStatus.CANCELLED
            subscription.current_period_end = now
        else:
            # Access continues until period end
            subscription.metadata['cancel_at_period_end'] = True

        await self.db.save_subscription(subscription)
        await self._emit_event('subscription.cancelled', subscription)

        return subscription

Complete Implementation: See src/examples/24-advanced-subscription-management/subscription_service.py

Those are the four operations every subscription system needs. Offering a pause instead of outright cancellation keeps some of the customers who'd otherwise leave. Measure how many paused accounts actually resume, because that number, not the pause count, is the retention you bought.

The data problems that turn into revenue errors before anyone gets to accounting. From chapter 25.

Common Issues

IssueImpactSolution
Duplicate transactionsRevenue over-reported by every duplicateDeduplication pipelines
Missing customer IDsBroken cohort analysisValidation at ingestion
Timezone inconsistenciesIncorrect daily totalsUTC standardization
Currency conversion errorsRevenue calculation errorsRate caching and logging

Questions

How is SaaS revenue recognized under ASC 606?

A SaaS subscription's fixed fee is usually recognized ratably over the service period, not when the cash arrives. A $1,200 annual plan paid on 1 January is $100 of revenue in each month of the year.

What is deferred revenue in SaaS?

Deferred revenue is cash collected for service you haven't delivered yet. ASC 606 calls it a contract liability. A $1,200 annual plan paid upfront leaves $1,100 of deferred revenue at the end of the first month.

How are SaaS setup fees recognized under ASC 606?

If the setup work doesn't transfer a service to the customer, the fee isn't its own performance obligation and is recognized with the rest of the contract, over the subscription: a $300 fee on a 12-month contract is $25 a month. Distinct implementation work is recognized as it's done, and a fee that gives a material right on renewal can be recognized over a longer period.

How do you account for a mid-term SaaS upgrade under ASC 606?

An upgrade is a contract modification. Because the months after it are usually distinct from the months before, it's typically treated prospectively: what's still deferred plus the new consideration is spread over the rest of the term. Confirm the treatment with whoever signs your accounts.

What does Stripe Revenue Recognition cost?

The monthly plan is $25 a month for up to $10,000 of monthly volume and 0.25% above that. Annual plans start at $190 a month.

What the book adds

The rest of chapters 25 and 24

  • A warehouse schema for payments and customers
  • MRR, LTV and churn queries for the dashboard
  • Cohort retention and revenue retention tables
  • Proration code that rounds once, at the end
  • Usage metering that survives duplicates and late events

30-day money-back · Instant PDF and EPUB

All 42 chapters