How to roll out a feature flag to a percentage of users in PostHog

Learn how to roll out a PostHog feature flag to a percentage of users: open the flag, click Edit, pick a rollout percentage, and save the change.

Quick answer

Open Feature flags, select the flag you want to change, and click Edit. In the release condition, set the rollout percentage by choosing a preset such as 25% or typing a value, then click Save. PostHog shows the estimated number of users the flag will reach before you save the change.

Steps at a glance

  1. Open the Feature flags list and select your flag.
  2. Click Edit on the flag page.
  3. Find the Rollout percentage section of the condition set.
  4. Choose 25% or type a value in the percentage box.
  5. Check the estimated number of users the rollout reaches.
  6. Click Save to apply the new rollout.

Interactive demo

Loading demo…

Summary

A percentage rollout releases a feature to a share of your users instead of everyone at once. In PostHog you set it on the flag's condition set, so you can widen exposure in stages and watch for problems first.

Step-by-step guide

  1. Step 1

    Open the feature flag

    Go to Feature flags in the left sidebar and find your flag in the list. Click the flag key, here new-board-layout, to open its page.

  2. Step 2

    Click Edit

    On the flag page, click Edit at the top. The page shows the current release condition, for example that the condition set is rolled out to 0% of users, and switches to edit mode.

  3. Step 3

    Set the rollout percentage to 25%

    Scroll to Rollout percentage in the condition set. Click 25% on the slider to choose that preset, or type a value in the percentage box. The condition set shows how many users the change reaches.

  4. Step 4

    Save the flag

    Click Save at the top of the page. The condition set now reads 25%, with the rollout estimated at about 12 users.

Why this matters

You built a new board layout and you do not want every user to see it on day one. Setting a rollout percentage lets you expose a small share first, confirm nothing breaks, and then raise it with the same flag.

Frequently asked questions

  • Which percentages can I pick?

    The slider offers presets at 0%, 10%, 25%, 50%, 75%, and 100%. You can also type a value in the percentage box.

  • Can I see how many users a rollout reaches?

    Yes. The condition set shows an estimate of the users it matches and the share the rollout will reach, for example about 12 users at 25%.

Create interactive demos like this one — free, no coding required.

Start for free →