How to upgrade or downgrade a Stripe subscription with proration
To upgrade or downgrade a Stripe subscription, update the subscription item with the new price ID and choose a proration_behavior: create_prorations (the default, adds the difference to the next invoice), always_invoice (charges or credits it now) or none (no adjustment). Preview the result first with a preview invoice, and for downgrades consider waiting until the period ends.
The common setup for a small SaaS is to charge upgrades immediately and let downgrades take effect at renewal. Below are the API calls, a worked example and the edge cases that cause surprise invoices. Details come from Stripe's prorations guide and change price guide, read on 30 November 2026.
How proration works in one example
Stripe's own example: a customer on a 10 USD monthly plan moves to a 20 USD plan halfway through the month.
| Line | Amount |
|---|---|
| Credit for unused half of the 10 USD plan | -5 USD |
| Charge for remaining half of the 20 USD plan | +10 USD |
| Net change | +5 USD |
Stripe calculates prorations to the second by default, using the current period's start and end. Two behaviors catch people out. A negative proration is not refunded automatically, it sits as a credit for future invoices. And a positive proration is not charged right away unless you ask for it or the change resets the billing period.
Pick a proration behavior
proration_behavior | What happens | Good for |
|---|---|---|
create_prorations (default) | Proration items are added to the next invoice | Upgrades where waiting to bill is fine; seat changes |
always_invoice | Proration is invoiced and charged (or credited) now | Upgrades that unlock paid features immediately |
none | No proration; new price applies from the next invoice | Downgrades at renewal, goodwill changes |
There is no setting that turns proration off for a subscription permanently. You pass none on every request where you do not want it.
Upgrade a subscription in the API
- Get the subscription item ID (
si_...) fromsubscription.items.data[0].id. - Preview the change (next section) and show the amount to the customer.
- Update the item with the new price and your chosen behavior:
curl https://api.stripe.com/v1/subscriptions/sub_123 \
-u "sk_test_...:" \
-d "items[0][id]=si_456" \
-d "items[0][price]=price_pro_monthly" \
-d proration_behavior=always_invoice
Pass the item id along with the new price. If you only pass a price, Stripe adds a second item and the customer pays for both plans.
- Listen for
customer.subscription.updatedandinvoice.paidto switch entitlements. Granting the new plan only after payment succeeds avoids giving away an upgrade on a card that fails. Stripe supports this with pending updates: combinealways_invoicewithpayment_behavior=pending_if_incomplete, and the subscription only changes if the new invoice is paid.
Preview the charge before you change anything
Create a preview invoice with the same items. It does not touch the subscription.
const prorationDate = Math.floor(Date.now() / 1000);
const preview = await stripe.invoices.createPreview({
customer: 'cus_123',
subscription: 'sub_123',
subscription_details: {
items: [{ id: 'si_456', price: 'price_pro_monthly' }],
proration_date: prorationDate,
},
});
Because proration runs to the second, the amount drifts between preview and update. Pass the same proration_date to the update call so the customer pays exactly what you showed.
Downgrade at the end of the period
Downgrading mid-period usually creates a credit the customer did not ask for and you then have to explain. Two cleaner options:
- Change at renewal with no proration: update the price with
proration_behavior=noneat or just before the renewal date. The next invoice is billed at the lower price. - Use a subscription schedule: add a phase that starts at the current period end with the lower price. The customer portal can do this for you: under Manage downgrades you can have downgrades take effect at period end, and the portal attaches a schedule to the subscription.
Keep the paid features on until the switch actually happens; the customer paid for them.
Changes that reset the billing date
Some changes make Stripe invoice immediately and move the billing date:
- Switching billing interval, for example monthly to yearly. The new yearly period starts on the day of the change.
- Moving from a free or zero-amount price to a paid one.
- Adding a trial, which moves the billing date to the trial's end.
If both prices share the same interval, billing dates stay where they were. If you sell annual plans as an upgrade path, how to offer an annual discount in Stripe covers how to set up the yearly price.
Edge cases worth knowing
- Unpaid invoices: Stripe assumes earlier invoices will be paid. A customer with an unpaid invoice who downgrades can get credit for time they never paid for. Stripe suggests
proration_behavior=nonein that case, and voiding the unpaid invoice if you reset billing, to avoid a double charge. - Discounts: prorations use the discounted price, and proration lines themselves are not discounted again. Adding or removing a coupon alone creates no proration.
- Usage-based prices: metered usage is not prorated; it is billed in arrears. See usage-based billing with Stripe meters.
- Billing mode: with
billing_mode=flexible, credit prorations are based on the last price actually billed rather than the current price. Stripe's guide shows a case where classic mode credits 6.67 USD for a price the customer never paid and flexible mode nets to zero. New integrations should check which mode they use.
A default policy for a small SaaS
If you need a rule today: upgrades use always_invoice with pending_if_incomplete so access follows payment; downgrades take effect at period end through the portal or a schedule; interval changes from monthly to yearly are treated as upgrades and charged now. Write that policy on your pricing page FAQ so customers know what to expect. How to cancel a Stripe subscription covers the remaining exit path.
Frequently asked questions
Does Stripe refund the difference when a customer downgrades?
No. A downgrade creates a credit proration that reduces future invoices. If you want to return money, issue a refund manually.
How do I upgrade a Stripe subscription without proration?
Pass proration_behavior=none on the update. The customer pays the new price from the next invoice with no adjustment for the current period.
Why did my customer get charged immediately after changing plans?
Either you used always_invoice, or the change reset the billing period: a new billing interval, a move from free to paid, or a trial change.
Can customers upgrade or downgrade themselves?
Yes. Turn on plan switching in the Stripe customer portal, list the products they can move between, and pick proration and downgrade timing in the portal settings.