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.
| Team size | Memory | Disk | Cheapest plan that fits | Server | With 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.
- 8 GB of memory for the whole stack at rest, every container the project ships included.
- 15 MB more per active user, then 25% on top so the box is not running at its ceiling.
- 60 GB of disk to begin with, growing 0.2 GB per user.
- 4 vCPU. Carried through from the project's baseline and not scaled with team size, because for this workload memory is what runs out first.
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 product | Its cost at 10 people | PostHog at 10 people | Break-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
| Licence | Other not a standard open-source licence |
|---|---|
| Written in | Python |
| GitHub stars | 39,757 |
| Open issues | 5,485 |
| Latest release | desktop-v0.61.377 |
| Last commit | 2026-09-12 |
| Repository checked | 2026-09-12 |
| Project | posthog.com · PostHog/posthog |