Container registries and cloud providers typically charge for two things that grow with Docker image size: storage (how many gigabytes you keep in the registry) and data transfer (how many gigabytes you pull over the network).
This Docker image size savings calculator helps DevOps engineers, SREs, and platform teams quantify how much money they can save each month by shrinking container images. Enter your current and optimized image sizes, the number of monthly pulls, and your provider’s pricing for storage and data transfer. The calculator estimates monthly savings across both dimensions so you can justify optimization work, compare scenarios, or plan a registry cleanup.
When you push images to a registry such as Docker Hub, Amazon ECR, Google Artifact Registry, or GitHub Container Registry, the provider stores the compressed layers and charges for the total gigabytes stored. Every time you pull the image to a node, cluster, or CI agent, those compressed layers are transferred over the network and count toward your data transfer or egress bill.
Smaller images mean fewer megabytes stored per tag and fewer megabytes transferred for each pull. When images are pulled frequently by CI pipelines, autoscaling clusters, or multiple environments, even a reduction of a few hundred megabytes per image can translate into meaningful monthly savings.
The calculator assumes you enter compressed image sizes in megabytes (MB), as reported by your registry or build tooling. It then converts these to gigabytes (GB) using 1 GB = 1,024 MB and applies your pricing inputs.
Let:
First compute the size reduction in gigabytes:
This gives in gigabytes saved per image.
Transfer savings per month are:
Storage savings per month are:
Total estimated monthly savings:
The calculator uses equivalent arithmetic with your form inputs and surfaces the total in currency units (for example, US dollars) based on the rates you provide.
Consider a typical optimization:
1. Compute the size reduction in GB:
ΔS = (800 − 300) / 1024 = 500 / 1024 ≈ 0.488 GB
2. Transfer savings per month:
0.488 GB × 200 pulls × $0.10 ≈ $9.76
3. Storage savings per month:
0.488 GB × $0.02 ≈ $0.01
4. Total estimated monthly savings:
$9.76 + $0.01 ≈ $9.77 per month
For a single service, this may seem modest, but as you add more services, environments, and CI jobs, the savings accumulate. The same pattern applies when switching from a full Linux distribution to a minimal or distroless base image, or when aggressively removing unused build tools with multi-stage builds.
Different workloads benefit in different ways from image optimization. The table below contrasts a storage-heavy case with a transfer-heavy one, assuming the same pricing.
| Scenario | Image Sizes (MB) | Monthly Pulls | Transfer Savings / Month | Storage Savings / Month |
|---|---|---|---|---|
| Large image, low pulls | 2,000 → 1,000 | 50 | Approx. $4.88 | Approx. $0.02 |
| Moderate image, high pulls | 600 → 300 | 5,000 | Approx. $73.24 | Approx. $0.01 |
In the first scenario, most savings come from reducing a very large image, even though it is pulled infrequently. In the second scenario, the per-pull savings are smaller, but the high pull volume makes transfer savings dominate. The calculator allows you to plug in your own numbers to see which effect matters more in your environment.
The output of the calculator is an estimated monthly savings figure. Use it as a planning tool rather than an exact bill prediction:
You can also compare multiple scenarios—for example, one optimized size using Alpine and another using a distroless base—to see which delivers the best cost reduction for your registry and workload patterns.
To keep the calculation simple and broadly applicable, several assumptions are made. Be aware of these when comparing the estimate to your actual invoices:
These simplifications are intentional so you can quickly explore “what if” scenarios. For a detailed cost analysis, export usage metrics from your registry or cloud provider and combine them with its full pricing model.
This tool is especially useful for:
Use the calculator as a quick way to communicate the value of keeping Docker images slim, monitoring their growth over time, and automating size checks in your CI/CD workflows.