How to Reduce PostHog Costs

On one bill over nine months, the identified-events charge ran about 3.5 times the events charge. Cut unused capture while keeping funnels and experiments measurable.

A ranked list of horizontal bars under a PostHog query header. The three longest bars, labelled $autocapture, $pageleave and $web_vitals, are snipped near their labels by small green scissors and slide away to the right as hollow outlines, $autocapture keeping a short stub; near the bottom a short solid white bar labelled purchase stays attached.

PostHog bills each product separately, with a monthly free allowance shared across every project in your organization and usage-based charges above it. There’s no per-seat charge.

You may have started with the free tier and now be paying for data nobody uses. Before switching anything off, check which reports and experiments depend on it.

Quick answer: Find the product driving your bill in Billing → Spend. Set a billing limit for each product you can cap, keeping in mind that data above the limit is lost. Then check which of that product’s data you can stop collecting.

PostHog’s Free Tier Limit

Each product has its own free allowance. You can be under the free limit for surveys while exceeding it for replays or events.

PostHog’s free allowances and first paid price, as of October 2026
ProductFree each monthPrice per unit at the first paid tier
Product Analytics1,000,000 events$0.00005 per event
Identified events add-on1,000,000 events$0.000198 per identified event, on top of the event price
Session Replay (web)5,000 recordings$0.005 per recording
Session Replay (mobile)2,500 recordings$0.01 per recording
Feature Flags and Experiments1,000,000 requests$0.0001 per request
Error Tracking100,000 exceptions$0.00037 per exception
Surveys1,500 responses$0.10 per response
Data Warehouse sources1,000,000 rows, plus free historical rows during each new source’s first 7 days$0.000015 per synced row
Destinations10,000 trigger events$0.0005 per trigger event
Batch exports1,000,000 rows$0.000015 per exported row
AI Observability100,000 events$0.00035 per event
Logs10 GB$0.25 per GB ingested

All prices are in USD, excluding taxes. These are the first paid rates; unit prices fall at higher volumes. (+) The first million analytics events are free whether anonymous or identified—the identified-events row does not give you another million events.

As a hypothetical example: 1.2 million anonymous events in a month leave 200,000 billable events at $0.00005 each, which is $10 before tax.

The allowances reset every month and unused allowance does not roll over. All projects share one allowance per product; adding a project does not create another free tier. (+)

On the free plan, usage stops at the allowance: extra events are permanently dropped and feature flags return a quota-limited default. You get one project, one year of event retention and one month of recording retention.

Even if you don’t expect to hit these limits, it’s still worth adding a credit card to your PostHog account. Adding a card moves you to pay-as-you-go at a $0 monthly base price, with six projects, seven years of event retention, 90 days of recordings, email support and access to paid product features. Optional platform packages cost extra.

You can still use up those allowances collecting sessions, events or clicks nobody will look at.

Pro tip: Set billing limits (including $0)

A $0 limit keeps a product within its free allowance; choose a higher limit where losing data would cost you more than collecting it.

Set a dollar limit for each product in your organization’s billing settings (EU billing settings).

At the limit, PostHog stops ingesting and processing additional data for that product. (+) That data is lost for good. Collection can resume in the next billing period, or sooner if you raise the limit; raising it cannot recover anything already dropped. (+)

A Product Analytics cap can drop purchase events that your funnels and ad destinations depend on. A Feature Flags cap makes /flags return quota_limited; SDKs fall back to defaults such as false or null. (+) If your experiment’s fallback is control, visitors then see control while the experiment is still running.

Alerts go out at 80% and 100% of both the free allowance and your configured limit, to the organization’s owners and admins. (+ / +) Assign one person to act on them: reduce capture, raise the limit or accept the data loss.

PostHog’s spike alerts run daily, combine unusual usage into one email and send no more than one email in seven days. (+) They apply to accounts without an assigned account manager and exclude the Data Warehouse. They do not replace a limit.

Logs custom retention cannot be capped. (+) A Logs limit stops ingestion; retained data can keep generating retention charges above it, outside the 80% and 100% alerts.

PostHog billing screen showing billing limits for Product Analytics and Error Tracking.
Billing-limit controls in an earlier PostHog interface.

Is PostHog’s Default Setting Cost Efficient?

Not for every site. The default settings may collect more than you need. Here’s one of my PostHog setups:

PostHog Product Analytics usage panel with the current and projected event counts and the spend redacted, showing the 1 million free-tier marker and the Identified events add-on.
Product Analytics usage on one of my PostHog setups, in an earlier interface; event counts and spend redacted.

Even correctly configured tracking costs money once it passes the free allowance. Check which data you use before paying to collect more of it.

When you install PostHog on your website, the JavaScript SDK defaults give you several separate streams of data: (+)

  • Interaction autocapture: On by default for clicks, form changes and submissions.
  • Pageviews and pageleaves: Pageviews are on; capture_pageleave defaults to if_capture_pageview, so pageleaves are captured wherever pageviews are enabled.
  • Dead clicks: On by default, capturing clicks with no response.
  • Web Vitals: CLS, FCP, LCP and INP are captured when enabled in the project’s settings, unless the SDK overrides that choice.
  • Heatmaps: Capture follows your project settings; heatmap data is free to ingest. (+)
  • Session Replay: When recording is enabled, every session is eligible unless recording rules narrow it. (+)

The browser also defaults to person_profiles: 'identified_only', so anonymous browsing does not create a person profile until a profile-creating call runs. (+) Server SDKs and the API send identified events by default. For server events that need no person, change the profile-processing option.

Check which of these streams you use before leaving them all enabled.

Check What’s Driving Your Bill

Start by going to the Spend tab in Billing to see how much each product is costing you.

PostHog monthly spend chart from March to November 2025 with amounts redacted: the identified events line sits well above the events line every month, and feature flag requests appear from July.
Monthly spend by product in the November 2025 interface; amounts redacted.

From what we’ve seen, cost spikes can start with:

  • A traffic jump that increases event volume.
  • Session Replay recording more sessions than you need.
  • More feature flag requests or experiment traffic.
  • Warehouse syncs, destinations or batch exports moving more data.
  • Duplicate collection after an installation or application change.

If exceptions drive the bill, fix the errors that repeat and narrow exception autocapture or add suppression rules for exceptions you don’t need. (+) Merging or resolving issues does not reduce billing, and suppression only stops future exceptions. (+) If Logs retention drives it, shorten retention for noisy services; that applies to newly ingested logs, so logs you already keep stay billed until they expire. (+)

Before changing capture:

  1. Review the billing period, current usage and projected spend for the product that climbed. Check what changed in your product or tracking around that time.
  2. Add the PostHog billable usage dashboard to break down usage by event name, SDK library and product.
  3. If the source of the increase is still unclear, trace the implementation from browser and server senders through to the reports before switching off useful data.

Rule out duplicate collection

Look for duplicate snippets in a tag manager and a theme, repeated initialization, listeners added on every render, webhook retries, and staging or localhost traffic sent to production. Then perform one action and inspect its events. Check whether they record different parts of the action or the same thing twice.

The free plan has one project. Adding a card lets you separate development, staging and production projects, but they still share the allowance. To reduce usage, stop unwanted capture at each sender. Moving test events to another project keeps them out of production reports but does not reduce the total.

Reduce Identified Event Costs

At the first paid tier, an anonymous event costs $0.00005. An identified event costs that event price plus the $0.000198 add-on: $0.000248 in total. The price gap narrows at higher tiers.

Across the nine months in the spend chart above, the identified-events line cost about 3.5 times the “Events” line and was the largest charge every month. On that bill, it was the first setting worth reviewing.

With the browser’s identified_only default, identify(), alias(), group(), setPersonProperties() and setGroupPropertiesForFlags() create a person profile. (+) Subsequent events for that person are identified. setPersonPropertiesForFlags() is the exception: it supplies flag-targeting properties without creating a profile.

If your initialization uses person_profiles: 'always', every event is identified. (+) Ask your developer to change it back to identified_only unless you need profiles for anonymous visitors. This does not make already identified users anonymous again.

For server events that need no person, set $process_person_profile: false and use a random distinct ID that is not linked to a profile. Reuse that ID for the visit or session. Using an already identified ID still produces identified events; using one shared ID such as system merges unrelated activity.

Call identify() once per session, and after login when the identity changes. (+) Repeating it with the same ID does not add another $identify event; changed properties can still produce a $set event. Call group() once per session too, rather than on every render. (+) Call reset() when a user logs out, so the next person on that device starts as a new anonymous visitor. (+)

Anonymous events still support trends and funnels using event properties, but they do not provide stored person properties or person-based cohorts. (+) Keep profiles for logged-in users, cross-device journeys and person-property targeting that your reports need. Test the anonymous-to-logged-in funnel before changing its identity calls.

Identifying a visitor later links their earlier events to the person without repricing those past events. You do not need to create a profile on the first pageview to preserve that earlier journey, provided the anonymous ID is preserved and linked at identification.

Reduce Session Replay Costs

Decide what you need to learn from recordings, then choose the sessions that could answer it.

Open your project’s replay ingestion settings. Trigger groups work on posthog-js 1.369.0+; older SDKs and projects without groups use legacy controls. (+) Editing groups requires project admin access.

Each group has URL, event and feature-flag conditions, an ANY or ALL match rule, a sample rate and a minimum duration. ANY needs one condition to match; ALL needs every condition. Any qualifying group can record a session. A group with no conditions matches every session.

1. Set a Minimum Session Duration

Watch a few short sessions before setting a cutoff. A 10-second minimum removes quick bounces and failures too, which may be the behavior you need to investigate.

On posthog-js 1.291.0+ with defaults set to 2025-11-30 or later, the minimum first requires continuous recording data on one page. (+) A full page navigation before that threshold clears the buffer and starts the wait again. Once the session passes it, later pages send recording data immediately.

2. Record Only Relevant Users

Use the group’s feature-flag condition to select the audience you need. (+) For example:

  • Record only users in a new-feature rollout.
  • Use a recording flag targeted to the cohort or experiment audience you want to investigate.

Use replay to follow the journey around an experiment, keeping both control and test sessions eligible when you need to compare behavior.

3. Restrict Recordings by URL

Start with the flows you need to investigate:

  • Checkout, signup and onboarding.
  • Critical product pages.
  • The landing page or flow you are investigating.

A URL trigger starts recording; it does not confine the recording to that page. (+) Recording continues after the visitor leaves the matching URL, with buffered activity from before the trigger where available.

4. Add Sampling

If you still have too much volume, apply sampling. In trigger groups, the rate applies only to sessions that already match the conditions. (+) Low rates reduce your chance of seeing rare failures. Selection is deterministic by session ID, so you cannot choose which individual sessions survive. (+)

For example, you could record checkout at 100%, the whole site at 10%, and sessions with an exception event in a separate group. Check the groups together: a broad rule can still record sessions excluded by a narrower one.

Legacy ANY matching with 100% sampling records every session, even with restrictive URL or flag conditions. (+) In trigger groups, deleting the last group creates a replacement “Record all sessions” group at 100%. (+) To stop recording, switch it off rather than deleting the rules.

To turn off web recording, disable Record user sessions in project settings, or ask your developer to add disable_session_recording: true to the existing posthog.init options. (+)

To estimate volume, create a Trends insight for All events → Unique sessions over the last 30 days and display the total. This estimates sessions with analytics events; recording rules can reduce the actual total. (+) Mobile replay is billed separately, with its own 2,500-recording allowance.

Reduce Events (Product Analytics) Costs

First, find the events you collect most. The free million counts events, not visitors: each captured pageview, click and pageleave uses part of it.

Run this SQL query:

SELECT event, count() AS event_count
FROM events
WHERE timestamp >= now() - INTERVAL 30 DAY
GROUP BY event
ORDER BY event_count DESC

Or open the prefilled version in PostHog and click Run.

PostHog SQL results ranking event names by count, with the counts and the store’s commerce event names redacted: $pageview first, then $feature_flag_called, with $autocapture and $identify among the redacted rows.
Event-volume results in the November 2025 SQL interface; counts and store event names redacted.

Start with the most frequent events in the results. For each one, ask which report, experiment or investigation uses it. If you no longer need it, stop capturing it or restrict when it fires.

The query counts stored events; use Billing to confirm what is billed. (+) Heatmap data is free to ingest, while $feature_flag_called events count as Product Analytics events, separately from flag-request charges. (+) The query covers the last 30 days, while billing periods start each month on the day you signed up, so reconcile against the dates Billing shows. (+)

Here’s how to shut off capture you don’t use:

A. Disable Web Vitals

If nobody uses the performance data, turn off Web Vitals autocapture in Project Settings. (+) Keep it if you use the Web Analytics performance dashboard or replay’s performance view. Check whether your installation overrides the project choice with capture_performance. To keep some performance data at lower volume, ask your developer to sample $web_vitals events with PostHog’s sampleByEvent helper instead of switching them off.

PageSpeed Insights provides lab results and Google’s field data where there are enough real-user samples. (+) That can help with performance work, but it does not replace measurements for your own PostHog segments.

PostHog project settings showing Web Vitals and Dead Clicks autocapture enabled.
Web Vitals and dead-click controls in an earlier PostHog interface.

B. Disable Dead Clicks

Dead clicks help you find interactions that get no response. If you do not investigate them, you may not need a separate event for each one. The heatmap records dead-click positions for free; dead-click autocapture sends a standard analytics event for each one. (+) Turn those events off in Project Settings → Autocapture, or have your developer set capture_dead_clicks: false.

C. Disable Pageleave

$pageleave helps measure time on the page and powers scroll-depth heatmaps. (+) Disabling it can also affect bounce-rate measurement. (+) If you do not need those, ask your developer to merge this option into your existing initialization:

capture_pageleave: false,

D. Disable Autocapture (or Use It Temporarily)

Interaction autocapture collects clicks, form changes and submissions by default. You can disable it in project settings or with autocapture: false. (+) Pageviews, pageleaves and replay have separate controls and keep running.

Once your key custom events are working and nothing depends on interaction autocapture, including reports, actions, cohorts, flag targeting and destination triggers:

  • Disable it globally by default.
  • Enable selectively when you need the clickmap or a deeper behavior investigation.
  • Disable again when the analysis is done.

You can still manually track the events that matter most: sign up, activate, upgrade, purchase and churn. Use your tracking plan to connect each event to the decision it supports. If you need some autocapture, allow or ignore lists let you restrict it to chosen pages or elements. The clickmap and actions built on autocapture need that capture to stay on. (+)

Don’t touch events used as experiment goals, exposure events, core funnel steps or destination triggers without preserving their measurement. Look at any chart, dashboard or experiment that uses an event before you delete or rename it.

Avoid sampling core product events where possible. If you do sample them, account for how that changes the analysis. Dropping purchases while keeping all funnel starts changes the conversion rate you calculate, even if customer behavior stays the same.

Reduce Feature Flag Costs

Feature Flags is billed per request to /flags, not per $feature_flag_called event. (+) A request is billed once even if it evaluates several active flags. Dropping those events does not reduce flag-request charges and removes the exposures that experiment analysis needs unless you have configured a replacement exposure event. (+)

For debug or support views, inspect loaded flags without creating exposure events. Keep actual experiment exposure tied to the visitor reaching the tested experience.

Browser SDKs fetch flags at initialization, on identify(), property updates, group creation and reloadFeatureFlags(). (+) In the browser’s Network tab, count requests on a normal page load. For an illustrative estimate, two requests per pageview × 150,000 monthly pageviews is about 300,000 requests.

Ask your developer to change the existing initialization, choosing the control that fits:

  • advanced_disable_feature_flags_on_first_load: true skips initial flag evaluation when an immediate identify() will fetch flags again. (+)
  • Bootstrap precomputed values and skip the initial fetch when those values are ready on page load. Use the same distinct ID on the server and browser, and include the server’s evaluation cost in your estimate.
  • advanced_disable_feature_flags: true disables flag evaluation where it is unnecessary. (+) It also disables surveys; use advanced_only_evaluate_survey_feature_flags: true if surveys must remain. To stop replay in that environment too, set disable_session_recording: true explicitly.

With these controls, a request to /flags can still fetch configuration without a billable flag evaluation. A Network entry alone does not prove a charge.

On a server, each flag evaluation makes a request unless local evaluation resolves it. (+) Local evaluation downloads definitions and checks flags on your server. SDKs that poll fetch definitions every 30 seconds by default (every five minutes in Go); PHP has no poller and loads them when the client is initialized or reloaded. (+) With ETag support, an unchanged poll costs one request; changed definitions or a new instance cost ten. At 30-second intervals, that is about 86,400 requests per continuously running instance over 30 days when definitions rarely change.

Older SDKs without ETags pay ten requests on every poll. (+) Upgrade, increase the polling interval or share a definitions cache across instances. A longer interval delays flag changes reaching the server. Use remote evaluation on edge or Lambda functions; starting a local-evaluation instance on every invocation can multiply polling costs.

Look for forgotten deployments too. Over 30 days, break down $feature_flag_called or $identify by $lib, $lib_version and $host. (+) This finds environments that send events; deployments making only flag requests need a separate check of your running applications.

Experiments have no separate experiment fee: you pay for flag requests and the analytics events used to measure them.

Reduce Data Warehouse and Destination Costs

Warehouse sources are billed by synced rows. (+) Full-table syncs repeatedly import the whole table. Incremental and append-only modes account for existing data, but incremental lookback windows can still reread recent rows to capture revisions. Incremental syncs need a replication key that is never null, since rows with a null key are skipped, and they do not carry deletions across; append-only suits records that are never updated. (+)

Sync schedules range from every five minutes to monthly. (+) If a report is read once a day, it may not need new data every six hours. Disable unused tables; they keep syncing even when nobody queries them. (+)

In a client project 99Ways audited, ad-platform sources on six-hour schedules exhausted the free allowance within one billing period. About 72% of counted rows came from full-refresh tables, including unchanged snapshots imported four times a day. Moving to daily schedules meant 75% fewer scheduled runs. That could not reclaim rows already counted, and because the limit had already blocked imports, there was no saving to measure yet.

While imports were blocked, the dashboards using those tables stopped getting fresh data. If you use Marketing Analytics with synced ad-platform sources, check how much delay your reports can tolerate before reducing the sync frequency. (+)

Destinations are billed per trigger event after 10,000 free events a month. Filter each destination to the events it needs; an ad conversion destination does not need the full click stream. (+) Batch exports have a separate meter, billed per exported row after their free allowance.

Check the Savings and Keep Reviewing

Compare complete billing periods in Billing → Usage / Spend, then compare usage across matched days with the same weekday mix. Check traffic and the anonymous/identified mix. Compare billed usage as well as spend: a tier change or lower traffic can change the bill without proving your configuration saved anything.

After the change, check that purchases still reach the right funnels and destinations, experiment exposures and outcomes still arrive, and the recordings you need are available. Lower spend means little if tracking has stopped working. Change one major collection setting at a time so you can tell what caused the difference.

Review usage monthly and after changes to traffic, features, funnels, experiments or the SDK. If projected costs rise, find what is being collected more often and whether you need it.

Frequently asked questions

Is PostHog free?

Yes. Each product has a monthly free allowance with no trial expiry or per-seat charge. (+) Pay-as-you-go retains those allowances; optional paid packages and Logs custom retention have separate charges.

What happens when I go over the free tier?

On pay-as-you-go, usage above the allowance is charged until your billing limit stops it. On the free plan, extra events are dropped permanently and flags return a quota-limited default.

Can I cap my PostHog spend?

Yes, most products support a dollar limit, including $0. Choose the cap with the data loss in mind. Logs custom retention has no cap, even when Logs ingestion is limited.

Do the free allowances reset monthly, and do projects share them?

Yes to both. Unused allowance does not roll over, and development, staging and production share one allowance per product. Separate projects keep their data out of each other’s reports, but their usage still adds to the same bill.

Are anonymous events cheaper than identified events?

Yes. At the first paid tier, anonymous events cost $0.00005 each; identified events add $0.000198, making $0.000248 each. Keep identification where person-based analysis needs it.

How much do PostHog experiments cost?

$0 in separate experiment fees. Flag requests and the events used to measure the experiment are billed through their own meters, with their own free allowances.

Does filtering internal users reduce my bill?

Not for analytics events: filtered events are still captured and billed. The internal-user filter changes what reports show and, where you turn it on, which events a destination processes, so a filtered destination bills fewer trigger events. (+) To reduce event usage, stop unwanted capture at each source.

Does turning off $feature_flag_called reduce flag costs?

No. Flag charges follow evaluation requests, so deleting exposure events leaves that meter running. It can also exclude participants from experiments that use those events as exposures.

How do I turn off session recording?

Disable Record user sessions in project settings, or set disable_session_recording: true in your existing web SDK initialization. To keep selected recordings, use trigger groups instead.

Where do I see what drives my bill?

Billing → Spend shows the product costs. Add the PostHog billable usage dashboard to investigate event names and SDK libraries. Use SQL event counts to find capture volume, then confirm the charge in Billing.

About the author

Iman Nazari

Iman Nazari

Iman combines user psychology, business strategy, and experimentation to uncover what drives action and improves performance. He focuses on hypothesis development, evidence-based decision making, and turning insights into changes that can be confidently tested and scaled.

More articles

Where is growth getting stuck?

Book a free 45-minute call with Iman. Show him your site and, if you can, your analytics. You’ll leave knowing what to fix or test first.

Book a free call