What is a prorated subscription charge?
A proration adjusts a bill for part of a service period. When a customer changes plans halfway through a paid period, the provider may credit unused time on the old plan and charge for the remaining time on the new one. The net adjustment is only one part of the billing result.
This guide helps someone building or checking a subscription app, including one created with AI. Stripe Billing is the documented example. We will separate the plan change, invoice calculation, collection attempt and app access so a successful settings update cannot be mistaken for a successful payment.
A negative adjustment is not automatically money returned to a card, and a positive adjustment need not be collected immediately. The existing refund guide covers money sent back; the renewal guide covers a bill that fails at the next period. Here we check a change within the current period.
Write down what is changing before calculating
Record the customer, subscription and existing subscription item. Then record the old and proposed price, currency, quantity, period start and end, exact change time, billing mode and status of the original invoice. Include tax, discounts and any pending invoice items in the real preview.
When replacing a Stripe price, supply the existing item identifier. Omitting it can add another item so both prices remain active. Also supply the intended quantity: changing a price otherwise resets the quantity to one. A three-seat workspace should not silently become one seat.
Keep the billing-cycle anchor, which sets the billing schedule, explicit. In classic mode, switching recurring intervals can reset it. Flexible mode preserves it except for documented explicit changes or changes to the trial end. Do not copy a monthly-to-annual calculation into a same-period upgrade.
Credit calculations also differ. Classic mode uses current item values; flexible mode uses the original debited amount. A plan changed earlier without billing can therefore make a later credit surprising. Read the subscription history rather than inferring the credited amount from today’s price label.
Worked example: three seats change halfway through
Our fictional workspace has three seats at USD 20 per seat for a paid period from April 1, 2027 at 09:00 UTC up to May 1 at 09:00 UTC. On April 16 at 09:00 UTC, all three seats move to USD 30 per seat. The period remains unchanged. There are no taxes, discounts, prior adjustments, usage charges, other invoice items or currency conversion.
The period contains 30 days, or 2,592,000 seconds. Exactly 15 days, or 1,296,000 seconds, remain. The unused fraction is remaining seconds divided by period seconds: 0.5. Stripe’s default proration granularity is seconds; calendar labels such as “half a month” need exact boundaries.
The old full-period total is 3 × USD 20 = USD 60. Credit unused old service: −USD 60 × 0.5 = −USD 30. The new full-period total is 3 × USD 30 = USD 90. Debit remaining new service: USD 90 × 0.5 = USD 45. The net adjustment is USD 15.
Under these assumptions, service across the whole period costs USD 75: USD 30 for the first half and USD 45 for the second. That reconciles with the original USD 60 plus the USD 15 adjustment. The next full period would be USD 90 if quantity, price and other conditions remain unchanged.
Now test a downgrade in a separate, otherwise identical case: three seats move from USD 30 to USD 20 halfway through a paid period. Credit USD 45 and debit USD 30, producing a net −USD 15 adjustment. This calculation does not establish that USD 15 was refunded. These are original arithmetic exercises, not results from a Stripe API run.
Read the preview as line items, not just a total
Use the provider’s invoice preview before applying a real change. Stripe’s preview can include renewal charges, pending invoice items and discounts as well as prorations. Isolate lines identified as prorations, then reconcile them to the complete invoice. Our USD 15 adjustment need not equal every invoice’s final amount due.
Keep the same intended proration timestamp between the preview and update, using the appropriate parameter for each endpoint. A preview calculated now and a change applied later can use different remaining time. A preview is also not an issued invoice or proof of collection.
For the exercise, compare five fields: existing item replaced, quantity three, unchanged May 1 boundary, credit USD 30 and debit USD 45. If the preview differs, inspect the assumptions before treating the provider as wrong. Check earlier modifications, mode, discounts, tax, rounding and unrelated lines.
Keep a copy of the proposed terms shown to the customer. If the real amount or effective date changes before confirmation, obtain the appropriate confirmation for the new terms rather than treating an obsolete preview as a settled bill.
An unpaid old invoice needs its own decision
Stripe can calculate credit for unused time on an unpaid invoice because its proration calculation assumes that invoice will eventually be paid. A calculated credit therefore does not prove the customer previously funded that time.
The documented unpaid-invoice workflow can disable proration and bill separately or reset the period. It also requires handling the old invoice so later payment does not cause double collection. Do not apply that remedy automatically: reconcile the actual debt, service already provided and your customer terms first.
In our worksheet, change the original invoice from paid to unpaid. The USD 60 “already paid” reconciliation is now invalid. Mark collection and any credit decision unresolved; do not announce a USD 15 refund or carry on using the paid-case balance. Keep the old invoice identifier visible during review.
Choose when to bill and when to grant the new plan
For a supported change that generates prorations, Stripe’s create_prorations setting creates the adjustment; always_invoice creates and invoices it immediately; none disables proration. These choices do not all produce the same invoice timing. An invoice or attempted charge is still not proof of successful collection.
Stripe documents that ordinary subscription updates can take effect even when payment fails. Pending updates can condition supported changes on payment, subject to eligible collection methods, payment methods and other limitations. Read those limits, including paused-subscription resumption behavior, before choosing that approach.
For our fictional product, write a separate access rule: an upgrade requiring immediate payment stays pending until the intended change and its payment outcome are verified. This is an example policy, not a universal Stripe default. Decide what a failed or expired change displays, and how the customer can recover.
Use the existing webhook lesson for verified events and duplicate handling. Reconcile the current invoice, subscription item and application entitlement. A delayed browser success screen must not activate a different plan from the one actually confirmed.
Practice prompt and release checks
Prompt to adapt: Review a fictional paid workspace with three seats at USD 20 each, April 1, 2027 at 09:00 UTC to May 1 at 09:00 UTC. All seats change to USD 30 on April 16 at 09:00 UTC; keep the period unchanged. Exclude tax, discounts and other items. Show the remaining seconds, credit, debit, net adjustment and whole-period reconciliation. Then reverse the prices for a separate downgrade. State what cannot be inferred about refunds or collection. Do not execute payments.
Add a test plan for an omitted item ID, quantity accidentally reset to one, an unpaid original invoice, a failed immediate payment and an expired pending update. Require the tool to state which results are calculated locally and which still need a provider sandbox.
The arithmetic answer is 1,296,000 seconds remaining, −USD 30 credit plus USD 45 debit, net USD 15 and whole-period USD 75. The separate downgrade yields −USD 15. A result that calls either calculation a completed payment has failed the evidence check.
- The existing item and intended quantity are explicit.
- Period, change timestamp, billing mode and original invoice status are recorded.
- Proration lines reconcile separately from the complete invoice.
- Credit, refund, invoice and collection have separate evidence.
- Payment failure and pending-update expiry have tested access outcomes.
- Provider sandbox results are distinguished from the arithmetic example.
Sources & further reading
- Stripe: prorations, unpaid invoices and charge timing
- Stripe: replace a subscription price and preserve quantity
- Stripe: classic and flexible billing differences
- Stripe: preview an invoice before a change
- Stripe: payment-dependent subscription updates
- Stripe: update and invoice a subscription change
Educational content. Examples are illustrative. Protocols, products and rules can change; consult the linked documentation for current details.
