Skip to content
30 changes: 21 additions & 9 deletions src/content/docs/r2/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ To learn about potential cost savings from using R2, refer to the [R2 pricing ca
| Data Retrieval (processing) | None | $0.01 / GB |
| Egress (data transfer to Internet) | Free [^1] | Free [^1] |

:::caution[Billable unit rounding]
Cloudflare rounds up your usage to the next billing unit.

For example:

- If you have performed one million and one operations, you will be billed for two million operations.
- If you have used 1.1 GB-month, you will be billed for 2 GB-month.
- If you have retrieved data (for infrequent access storage) for 1.1 GB, you will be billed for 2 GB.
:::

### Free tier

You can use the following amount of storage and operations each month for free. The free tier only applies to Standard storage.
Expand Down Expand Up @@ -108,27 +118,29 @@ To learn about potential cost savings from using R2, refer to the [R2 pricing ca

### Data storage example 1

If a user writes 1,000 objects in R2 for 1 month with an average size of 1 GB and requests each 1,000 times per month, the estimated cost for the month would be:
If a user writes 1,000 objects in R2 standard storage for 1 month with an average size of 1 GB and requests each 1,000 times per month, the estimated cost for the month would be:

| | Usage | Free Tier | Billable Quantity | Price |
| ------------------ | ------------------------------------------- | ------------ | ----------------- | ---------- |
| Class B Operations | (1,000 objects) \* (1,000 reads per object) | 10 million | 0 | $0.00 |
| Class A Operations | (1,000 objects) \* (1 write per object) | 1 million | 0 | $0.00 |
| Storage | (1,000 objects) \* (1 GB per object) | 10 GB-months | 990 GB-months | $14.85 |
| Data retrieval | (1,000 objects) \* (1 GB per object) | 0 GB | None | $0.00 |
| **TOTAL** | | | | **$14.85** |
| | | | | |

### Data storage example 2

If a user writes 10 objects in R2 for 1 month with an average size of 1 GB and requests 1,000 times per month, the estimated cost for the month would be:
If a user writes 1,000 objects in R2 infrequent access storage for 1 month with an average size of 1 GB and requests 1,000 times per month, the estimated cost for the month would be:

| | Usage | Free Tier | Billable Quantity | Price |
| ------------------ | ------------------------------------------- | ------------ | ----------------- | --------- |
| Class B Operations | (1,000 objects) \* (1,000 reads per object) | 10 million | 0 | $0.00 |
| Class A Operations | (1,000 objects) \* (1 write per object) | 1 million | 0 | $0.00 |
| Storage | (10 objects) \* (1 GB per object) | 10 GB-months | 0 | $0.00 |
| **TOTAL** | | | | **$0.00** |
| | | | | |
| | Usage | Free Tier | Billable Quantity | Price |
| ------------------ | ------------------------------------------- | ------------ | ----------------- | ---------- |
| Class B Operations | (1,000 objects) \* (1,000 reads per object) | 10 million | 0 | $0.00 |
| Class A Operations | (1,000 objects) \* (1 write per object) | 1 million | 0 | $0.00 |
| Storage | (1,000 objects) \* (1 GB per object) | 10 GB-months | 990 GB-months | $9.90 |
| Data retrieval | (1,000 objects) \* (1 GB per object) | 0 GB | 1,000 GB | $10.00 |
| **TOTAL** | | | | **$19.00** |
| | | | | |

### Asset hosting

Expand Down