---
title: "How to reduce Postgres compute costs as you scale"
description: "Compute, not storage, usually dominates managed Postgres bills, and allocation-based services like Amazon RDS leave most provisioned capacity idle."
url: "https://swe.quest/articles/how-to-reduce-postgres-compute-costs-as-you-scale-00db750fe1e313ab"
canonical: "https://neon.com/blog/how-to-reduce-postgres-compute-costs-as-you-scale"
source: "Neon"
published: "2024-04-29"
difficulty: "medium"
kind: "How-to"
reading_minutes: 12
tags: ["postgres","cost-optimization","capacity-planning","cloud","serverless"]
---

# How to reduce Postgres compute costs as you scale

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-04-29, 12 min read, How-to. Original: [https://neon.com/blog/how-to-reduce-postgres-compute-costs-as-you-scale](https://neon.com/blog/how-to-reduce-postgres-compute-costs-as-you-scale)

## Summary

Compute, not storage, usually dominates managed Postgres bills, and allocation-based services like Amazon RDS leave most provisioned capacity idle. On RDS, costs fall through careful planning of instance count, multi-AZ use and instance size, through downsizing guided by CloudWatch metrics such as CPUUtilization and FreeableMemory, and through query tuning: EXPLAIN ANALYZE, indexes, materialized views, caching and fixing ORM N+1 queries. Manual resizing is slow, error-prone and causes downtime, so Neon positions its autoscaling (autoscaler-agent, a modified Kubernetes scheduler and NeonVM) and scale-to-zero autosuspend as the way to make compute spend track actual load.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Amazon RDS
- SQL query plans ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Neon, Amazon RDS, CloudWatch, EXPLAIN ANALYZE, NeonVM, autoscaling

## Related posts

- [Neon Compute Autoscaling Report](https://swe.quest/articles/neon-compute-autoscaling-report-e5a9b1a72b233ac7.md): Neon · 2026-02-12 · Medium · 11 min read · Cost optimization, Capacity planning, PostgreSQL, Cloud platforms
  Neon's December 2025 fleet data shows production Postgres databases using 2.4x less compute and about 50% lower cost than they would if sized for a provisioned platform using AWS RDS's rightsizing rule (P99.5 utilization + 20%).
- [Neon Autoscaling is Generally Available](https://swe.quest/articles/neon-autoscaling-is-generally-available-f402e1eef903aa23.md): Neon · 2024-08-26 · Easy · 6 min read · PostgreSQL, Serverless, Capacity planning, Kubernetes, Virtualization
  Neon's Postgres autoscaling is now generally available on all plans, including Free (up to 2 CPU, 8 GB RAM), adjusting CPU and memory to load between user-set minimum and maximum limits, with scale-to-zero.
- [Scaling serverless Postgres: How we implement autoscaling](https://swe.quest/articles/scaling-serverless-postgres-how-we-implement-autoscaling-6cecd10b4a114371.md): Neon · 2023-03-29 · Medium · 9 min read · PostgreSQL, Serverless, Kubernetes, Virtualization, Capacity planning
  Neon autoscales serverless Postgres by running each compute endpoint in a QEMU/KVM VM on Kubernetes (via its NeonVM controller) and hot-adding or removing CPU and memory based on load average.
- [Autoscaling Lakebase Postgres](https://swe.quest/articles/autoscaling-lakebase-postgres-63257ef0753db067.md): Neon · 2026-08-31 · Hard · 12 min read · PostgreSQL, Capacity planning, Virtualization, Algorithms, Kubernetes
  Neon's Lakebase Postgres resizes compute in place about once every 81 seconds by taking the maximum of three target sizes: CPU load (one-minute average kept under 90%), memory (polled every 100 ms by an in-VM monitor and kept under 75%), and the working set of the compute cache.
- [How to Make the Most of Neon’s Free Plan](https://swe.quest/articles/how-to-make-the-most-of-neon-s-free-plan-e0e1d50805ccef5f.md): Neon · 2025-09-03 · Medium · 4 min read · PostgreSQL, Serverless, Cost optimization
  Neon's Free Plan limits apply per project rather than per account, so usage has to be monitored on each project's dashboard.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
