SelfHostCost

Web analytics

What it costs to self-host PostHog

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP. Below is the server it needs at each team size, what that costs, and how long the 1 commercial product it replaces would take to cost more.

Sizing and monthly cost for PostHog by team size. Memory includes 25% headroom.
Team sizeMemoryDiskCheapest plan that fitsServerWith backups and your time
solo 10.0 GB 60.2 GB Basic 16 GiB · DigitalOcean $96.00 $340
5 people 10.1 GB 61 GB Basic 16 GiB · DigitalOcean $96.00 $340
10 people 10.2 GB 62 GB Basic 16 GiB · DigitalOcean $96.00 $340
25 people 10.5 GB 65 GB Basic 16 GiB · DigitalOcean $96.00 $340
50 people 10.9 GB 70 GB Basic 16 GiB · DigitalOcean $96.00 $340
100 people 11.8 GB 80 GB Basic 16 GiB · DigitalOcean $96.00 $340
250 people 14.6 GB 110 GB Basic 16 GiB · DigitalOcean $96.00 $340

The sizing model for PostHog

Kafka, ClickHouse, PostgreSQL, Redis and several workers. PostHog itself now discourages self-hosting below a substantial scale, and the sizing here reflects that honestly.

These base figures come from the project's own documented requirements. The per-user increments are ours in every case. They are deliberately generous rather than optimistic: a comparison that undersizes the server flatters self-hosting.

Time, not just money

PostHog is rated hard to operate, which in this model means about 16 hours to get it running properly the first time and 3 hours a month after that. At $75 an hour that is $1,200 once and $225 a month, which is usually the largest line in the whole calculation. This one is genuinely heavy: several stateful services, and an upgrade path where rushing can cost you data.

What it replaces

Commercial productIts cost at 10 peoplePostHog at 10 peopleBreak-even
Google Analytics 4 Free $0.00 $340 never full breakdown

Where to put PostHog

10.2 GB of memory and 62 GB of disk is what this needs at 10 people. The cheapest plan that fits, among the providers whose prices we have read ourselves, is the Basic 16 GiB at DigitalOcean for $96.00 a month.

Go to DigitalOcean Compare hosts

We are not claiming this is the cheapest server on the internet. It is the cheapest one we can honestly quote. Hetzner Cloud, Vultr and PikaPods publish prices we could not read programmatically, and Hetzner in particular is usually cheaper per gigabyte of memory than anything quoted above. Price them yourself before you commit.

The DigitalOcean link above is a referral link: if you sign up through it and pay your first $25, we receive $25 of DigitalOcean account credit. That never changes the computed costs, which server is chosen, or the conclusion of this page. The sizing model and every price source are published in full.

Project facts

LicenceOther not a standard open-source licence
Written inPython
GitHub stars39,757
Open issues5,485
Latest releasedesktop-v0.61.377
Last commit2026-09-12
Repository checked2026-09-12
Projectposthog.com · PostHog/posthog

Related