Repository Size Calculator
Estimate Git repository size from objects, LFS files, and history depth. Calculate expected clone times at different speeds.
Calculate Git LFS storage and bandwidth costs. Compare pricing across GitHub, GitLab, and Bitbucket for large file storage.
| Month | Storage (GB) | Bandwidth (GB) | Monthly Cost | Cumulative |
|---|---|---|---|---|
| Current | 100.0 | 500.0 | $50.59 | $50.59 |
| +3 | 133.1 | 665.5 | $67.39 | $234.90 |
| +6 | 177.2 | 885.8 | $89.75 | $480.38 |
| +9 | 235.8 | 1,179.0 | $119.51 | $807.26 |
| +12 | 313.8 | 1,569.2 | $159.12 | $1,242.49 |
| Provider | Storage Rate | Bandwidth Rate | Free Storage | Free Bandwidth | Your Est. Monthly |
|---|---|---|---|---|---|
| github | $0.07/GB | $0.0875/GB | 1 GB | 1 GB | $50.59 |
| gitlab | $0.05/GB | $0.1/GB | 5 GB | 10 GB | $53.75 |
| bitbucket | $0.06/GB | $0.08/GB | 1 GB | 5 GB | $45.54 |
Git Large File Storage (LFS) replaces large files in your repository with lightweight pointers while storing the actual file content on a remote server. While this keeps your Git repository fast, the storage and bandwidth for LFS objects come with costs that can add up significantly for teams with many large assets.
This calculator helps you estimate monthly Git LFS costs based on storage volume and bandwidth usage. Different platforms have different pricing models: GitHub charges for both storage and bandwidth separately, while GitLab includes more storage in premium plans and Bitbucket bundles LFS with repository storage.
Understanding these costs is especially important for game development, design teams, and data science projects where large binary files are common. Costs can range from a few dollars to hundreds per month depending on usage patterns.
Git LFS costs are easy to overlook until they show up on the bill. This calculator helps you forecast costs before committing to LFS, compare platform pricing, and decide whether alternative solutions like artifact registries or cloud storage might be more cost-effective.
Storage Cost = storage_GB ร storage_rate_per_GB
Bandwidth Cost = bandwidth_GB ร bandwidth_rate_per_GB
Total Monthly = Storage Cost + Bandwidth Cost
Annual Cost = Total Monthly ร 12Result: $50.75/month
Storage: 100 GB ร $0.07 = $7.00. Bandwidth: 500 GB ร $0.0875 = $43.75. Total: $50.75/month or $609/year. High CI/CD activity drives bandwidth costs; consider caching LFS objects in CI.
GitHub charges per-GB for both storage and bandwidth with free tier included. GitLab includes generous LFS storage in its Premium and Ultimate plans. Bitbucket bundles LFS with repository storage limits. Self-hosted solutions eliminate per-GB charges but add infrastructure costs.
Bandwidth is often the larger cost component, especially for teams with active CI/CD pipelines. Each pipeline clone downloads all LFS objects unless specifically configured to skip them. Use GIT_LFS_SKIP_SMUDGE=1 in CI jobs that don't need large files.
For very large datasets or build artifacts, consider cloud storage (S3, GCS), artifact registries (Artifactory, Nexus), or DVC (Data Version Control). These solutions offer more flexible pricing and access patterns while keeping Git lean.
Last updated:
GitHub includes 1 GB of free LFS storage and 1 GB of free bandwidth per month for all accounts. Additional capacity is available in data packs: $5/month for 50 GB of storage and 50 GB of bandwidth.
Bandwidth includes downloading LFS objects during git clone, git fetch, git pull, and git checkout operations. Each CI pipeline clone that fetches LFS objects counts against bandwidth. Uploads (push) typically don't count.
LFS itself isn't cheaper for storage, but it dramatically reduces Git repository clone size and operation speed. The cost trade-off is paying for LFS hosting vs. the developer time wasted on slow Git operations with large files in the repo.
Yes, GitLab self-managed and Gitea include LFS support. You pay only for the underlying storage infrastructure. This is typically cheaper at scale but requires setup and maintenance effort.
Track large binary files that change occasionally: images, videos, design files (PSD, Sketch), compiled binaries, datasets, and model files. Don't use LFS for text files or frequently-changing files, as it removes Git's diff capabilities.
On GitHub, pushes and pulls will be blocked until bandwidth resets next month or you purchase additional data packs. On GitLab, behavior depends on your plan. Always monitor usage to avoid disruptions.
Estimate Git repository size from objects, LFS files, and history depth. Calculate expected clone times at different speeds.
Calculate CI/CD pipeline costs including build minutes, storage, and artifact transfer. Optimize your continuous integration spending.
Calculate GitHub Actions costs by OS type. Estimate Linux, Windows, and macOS runner minutes with free tier deductions.