CalculatorMasters

A/B Testing Bandwidth Cost Per-User Formula

Learn how to estimate the incremental bandwidth cost per variant user and total delivery cost for an A/B test.

This calculation estimates the extra data transfer and delivery cost created when a test variant is larger than the control. It separates the per-exposed-user impact from the full-test impact, helping teams assess the operational cost of heavier pages or assets during an experiment.

  • 100% Free
  • No Sign-Up Required
  • Private & Secure
  • Mobile Friendly

Extra Bandwidth Cost per Exposed User

Cost per variant user = [max(Variant KB − Control KB, 0) × Views per user ÷ 1,048,576] × Rate per GB

Where:

Find how many more KB the variant transfers per view, multiply by the expected views for one variant user, convert KB to GB, and multiply by the bandwidth price per GB.

Variables Explained

VariableWhat It MeansUnit
variantSizeKb - Variant transfer sizeAverage data transferred when a user loads the variant experience.KB per page view
controlSizeKb - Control transfer sizeAverage data transferred when a user loads the control experience.KB per page view
pageViewsPerExposedUser - Page views per exposed userAverage number of tested-experience loads made by one user assigned to the variant.number
bandwidthRate - Bandwidth rateData-delivery price in the selected currency for each GB transferred.currency per GB
testUsers - Total test usersExpected number of unique users included in the experiment.users
variantAllocation - Variant traffic allocationPercentage of test users assigned to the variant.percent

Step-by-Step Calculation

1

Calculate users exposed to the variant

Only users assigned to the variant are included in the incremental transfer total.

variantUsers = testUsers * (variantAllocation / 100)

2

Find the extra transfer per page view

The calculation counts only a positive size increase. A same-size or smaller variant has zero additional transfer.

additionalKbPerView = max(variantSizeKb - controlSizeKb, 0)

3

Calculate extra transfer per exposed user

This applies the page-size difference across the expected number of tested page views.

additionalKbPerUser = additionalKbPerView * pageViewsPerExposedUser

4

Convert per-user transfer to GB

The calculator uses 1 GB = 1,048,576 KB.

additionalGbPerUser = additionalKbPerUser / 1048576

5

Calculate cost per exposed user

Multiply additional GB per variant user by the delivery rate.

bandwidthCostPerUser = additionalGbPerUser * bandwidthRate

6

Calculate full-test cost

Multiply the per-user incremental cost by the estimated number of users who receive the variant.

totalBandwidthCost = bandwidthCostPerUser * variantUsers

Example: 150 KB larger variant with 50% traffic allocation

Control transfer size250 KB per page view
Variant transfer size400 KB per page view
Total test users100,000 users
Variant traffic allocation50%
Page views per exposed user1 view
Bandwidth rate0.08 per GB
1

Variant users

100000 × (50 / 100)

50,000 users

2

Extra transfer per view

max(400 − 250, 0)

150 KB

3

Extra data per exposed user

150 × 1

150 KB

4

Extra GB per exposed user

150 ÷ 1048576

0.000143051 GB

5

Extra cost per exposed user

0.000143051 × 0.08

0.000011444

6

Total additional cost

0.000011444 × 50000

0.5722

Final Result

The larger variant adds about 150 KB and 0.000011 in bandwidth cost per exposed user. Across 50,000 variant users, it adds about 7.15 GB of transfer and 0.57 in the selected currency.

Try the Calculator →

Assumptions

  • Control and variant sizes are average transferred sizes for one page view or experience load.
  • The variant allocation is applied evenly to the expected test-user total.
  • Every variant user generates the entered average number of tested page views.
  • The bandwidth rate remains constant for all incremental GB in the experiment.
  • One GB is treated as 1,048,576 KB.

Limitations

  • !Actual invoices may also include request, storage, edge-compute, cache, minimum-fee, tax, or regional-price components.
  • !Caching, reused assets, compression, redirects, and protocol overhead can make measured transfer differ from the input size.
  • !User behavior may vary by segment, device, geography, and experiment duration.
  • !The calculator does not estimate performance effects, conversion effects, or infrastructure capacity costs.

Common Mistakes to Avoid

1

Entering uncompressed build size instead of the average compressed transfer size received by users.

2

Using all test users as variant users rather than applying the variant traffic allocation.

3

Entering total site page views instead of page views of the tested experience per variant user.

4

Using a bandwidth price in a different currency than the one used for reporting.

5

Treating a smaller variant as a negative cost when this calculator is designed to report additional cost only.

Related Formulas

Frequently Asked Questions

How is A/B testing bandwidth cost per user calculated?

Subtract the control transfer size from the variant size, cap negative differences at zero, multiply by views per exposed user, convert KB to GB, and apply the bandwidth rate.

Why does the formula use max(variant size minus control size, 0)?

The calculator measures added cost from a larger variant. If the variant is smaller, it reports zero additional cost rather than a negative value.

How many KB are in the GB conversion used here?

The calculation uses 1,048,576 KB per GB, which is 1024 × 1024 KB.

Does traffic allocation change the per-user cost?

No. Allocation changes the number of users receiving the variant and therefore the total cost, not the cost for one exposed user.

Should page views per user include reloads?

Include average loads of the tested experience that are expected to transfer the relevant variant assets. Use measured behavior where possible.

Ready to calculate your result?

Use the calculator to get instant results with your own inputs.

Try A/B Testing Bandwidth Cost Per-User