SQL database pricing compared across 15 providers

Managed Postgres / MySQL, each sized to hold your working set in memory and your query load, plus your data. Every option is priced at the same workload from dated, sourced price sheets, cheapest first.

SQL database cost - Small app (1M req/mo)

Workload: 1M requests/mo · 30 ms CPU each · 10 GB database · 20 GB files · 50 GB egress. Cheapest: Cloudflare Cloudflare D1 (serverless SQL, SQLite-based) at $3.75/month.

ProviderProductHow it's billedFree tierEst. / month
CloudflareCloudflare D1 (serverless SQL, SQLite-based)$0.001 / million rows reads + $1 / million rows writes + $0.75 / GB-month storage25 billion rows, 50 million rows$3.75
Fly.ioFly Postgres (self-managed, shared-cpu-1x, 1GB node)$0.0079 / instance-hour (≈ $5.77/mo each)-$7.27
HerokuHeroku Postgres23 plans, from $5/mo-$9.00
AWSRDS for PostgreSQL (db.t4g.micro, Single-AZ, gp3)$0.016 / instance-hour (≈ $11.68/mo each)-$12.83
AzureAzure Database for PostgreSQL Flexible Server (Burstable B1ms)$0.017 / instance-hour (≈ $12.41/mo each)-$13.56
DigitalOceanManaged PostgreSQL (1 GiB / 1 vCPU, single node)$0.021 / instance-hour (≈ $15.15/mo each)-$17.25
RenderRender Managed PostgreSQL18 plans, from $6/mo-$21.70
RailwayRailway Postgres (0.5 vCPU / 1 GiB RAM, usage-billed like all Railway compute)$0.028 / instance-hour (≈ $20.29/mo each)-$22.79
NeonNeon Serverless Postgres3 plans, from $0/moFree plan$22.85
SupabaseSupabase Platform (Database + Auth + Storage + Bandwidth)12 plans, from $0/moFree plan$25.25
Google CloudCloud SQL for PostgreSQL (db-g1-small, shared core)$0.035 / instance-hour (≈ $25.55/mo each)-$27.77
Alibaba CloudApsaraDB RDS for MySQL Serverless (Basic series, at its 0.5 RCU minimum)$0.037 / instance-hour (≈ $27.21/mo each)-$30.13
Linode (Akamai)Managed Database - Shared CPU (MySQL/PostgreSQL, 1 node; plan sized to the data)10 plans, from $16/mo-$32.00
Oracle CloudMySQL HeatWave (MySQL.2: 2 ECPU / 16 GB)$0.073 / instance-hour (≈ $53.44/mo each)-$53.84
AWSAurora Serverless v2 (PostgreSQL)$0.12 / instance-hour (≈ $87.6/mo each)-$88.60
Oracle CloudOCI Database with PostgreSQL (E5 Flex, 1 OCPU / 16 GB minimum)$0.16 / instance-hour (≈ $116.8/mo each)-$118
IBM CloudDatabases for PostgreSQL (Gen 1, Shared Compute, Standard 2-member HA)1 plans, from $180.54/mo-$181
Oracle CloudAutonomous AI Transaction Processing (Serverless, License Included, 2 ECPU minimum)$0.672 / instance-hour (≈ $490.56/mo each)-$493

SQL database cost - Growing (20M req/mo)

Workload: 20M requests/mo · 40 ms CPU each · 100 GB database · 200 GB files · 1 TB egress. Cheapest: Oracle Cloud MySQL HeatWave (MySQL.2: 2 ECPU / 16 GB) at $57.44/month.

ProviderProductHow it's billedFree tierEst. / month
Oracle CloudMySQL HeatWave (MySQL.2: 2 ECPU / 16 GB)$0.073 / instance-hour (≈ $53.44/mo each)-$57.44
CloudflareCloudflare D1 (serverless SQL, SQLite-based)$0.001 / million rows reads + $1 / million rows writes + $0.75 / GB-month storage25 billion rows, 50 million rows$71.25
Oracle CloudOCI Database with PostgreSQL (E5 Flex, 1 OCPU / 16 GB minimum)$0.16 / instance-hour (≈ $116.8/mo each)-$124
Google CloudCloud SQL for PostgreSQL (Enterprise, 2 vCPU / 13 GiB)$0.174 / instance-hour (≈ $126.73/mo each)-$149
RailwayRailway Postgres (0.5 vCPU / 12 GiB)$0.181 / instance-hour (≈ $131.87/mo each)-$157
AWSRDS for PostgreSQL (db.r8g.large, Single-AZ, gp3)$0.239 / instance-hour (≈ $174.47/mo each)-$186
RenderRender Managed PostgreSQL18 plans, from $6/mo-$190
AzureAzure Database for PostgreSQL Flexible Server (Memory Optimized E2ds_v5)$0.25 / instance-hour (≈ $182.5/mo each)-$194
NeonNeon Serverless Postgres3 plans, from $0/moFree plan$228
SupabaseSupabase Platform (Database + Auth + Storage + Bandwidth)12 plans, from $0/moFree plan$237
IBM CloudDatabases for PostgreSQL (Gen 1, Shared Compute, Standard 2-member HA)1 plans, from $180.54/mo-$248
Linode (Akamai)Managed Database - Shared CPU (MySQL/PostgreSQL, 1 node; plan sized to the data)10 plans, from $16/mo-$252
DigitalOceanManaged PostgreSQL (16 GiB / 6 vCPU, single node)$0.335 / instance-hour (≈ $244.35/mo each)-$265
Fly.ioFly Postgres (self-managed, performance-8x, 16GB node)$0.344 / instance-hour (≈ $251.41/mo each)-$266
Alibaba CloudApsaraDB RDS for MySQL Serverless (Basic series, 5 RCU)$0.373 / instance-hour (≈ $272.11/mo each)-$301
HerokuHeroku Postgres23 plans, from $5/mo-$400
AWSAurora Serverless v2 (PostgreSQL, 5 ACUs)$0.6 / instance-hour (≈ $438/mo each)-$448
Oracle CloudAutonomous AI Transaction Processing (Serverless, License Included, 2 ECPU minimum)$0.672 / instance-hour (≈ $490.56/mo each)-$510

SQL database cost - At scale (200M req/mo)

Workload: 200M requests/mo · 50 ms CPU each · 1 TB database · 2 TB files · 10 TB egress. Cheapest: DigitalOcean Managed PostgreSQL (16 GiB / 6 vCPU, single node) at $454/month.

ProviderProductHow it's billedFree tierEst. / month
DigitalOceanManaged PostgreSQL (16 GiB / 6 vCPU, single node)$0.335 / instance-hour (≈ $244.35/mo each)-$454
Oracle CloudMySQL HeatWave (MySQL.16: 16 ECPU / 128 GB)$0.586 / instance-hour (≈ $427.49/mo each)-$467
Fly.ioFly Postgres (self-managed, performance-16x, 32GB node)$0.689 / instance-hour (≈ $502.9/mo each)-$653
Oracle CloudAutonomous AI Transaction Processing (Serverless, License Included, 2 ECPU minimum)$0.672 / instance-hour (≈ $490.56/mo each)-$686
Alibaba CloudApsaraDB RDS for MySQL Serverless (Basic series, 8 RCU)$0.596 / instance-hour (≈ $435.37/mo each)-$727
CloudflareCloudflare D1 (serverless SQL, SQLite-based)$0.001 / million rows reads + $1 / million rows writes + $0.75 / GB-month storage25 billion rows, 50 million rows$796
Oracle CloudOCI Database with PostgreSQL (E5 Flex, 8 OCPU / 128 GB)$1.28 / instance-hour (≈ $934.4/mo each)-$1,006
AzureAzure Database for PostgreSQL Flexible Server (General Purpose D16ds_v5)$1.42 / instance-hour (≈ $1039.52/mo each)-$1,155
RailwayRailway Postgres (32 vCPU / 32 GiB)$1.33 / instance-hour (≈ $973.83/mo each)-$1,224
Google CloudCloud SQL for PostgreSQL (Enterprise, 16 vCPU / 104 GiB)$1.39 / instance-hour (≈ $1013.82/mo each)-$1,236
IBM CloudDatabases for PostgreSQL (Gen 1, Shared Compute, Standard 2-member HA)1 plans, from $180.54/mo-$1,305
AWSRDS for PostgreSQL (db.r8g.4xlarge, Single-AZ, gp3)$1.91 / instance-hour (≈ $1395.76/mo each)-$1,511
RenderRender Managed PostgreSQL18 plans, from $6/mo-$1,800
HerokuHeroku Postgres23 plans, from $5/mo-$2,000
SupabaseSupabase Platform (Database + Auth + Storage + Bandwidth)12 plans, from $0/moFree plan$2,009
Linode (Akamai)Managed Database - Shared CPU (MySQL/PostgreSQL, 1 node; plan sized to the data)10 plans, from $16/mo-$2,016
NeonNeon Serverless Postgres3 plans, from $0/moFree plan$2,285
AWSAurora Serverless v2 (PostgreSQL, 64 ACUs)$7.68 / instance-hour (≈ $5606.4/mo each)-$5,706

Change the workload or switch machine sizes and watch every sql database option re-price live.

Open interactive comparison

Other service comparisons