When we are about to contract a hosting provider, we have to decide what bandwidth we will need, and that requires a prior calculation. If we end up buying an inadequate bandwidth, we will either pay more than we should (bandwidth excess is usually quite expensive), or we will pay for something that we will never use.
To know with a reasonable certainty what amount of bandwidth we will require, we first need to know the average weight (in bytes) of all our pages, including images and other resources. We also need to know the average amount of pages that our website users visit daily - or the amount of pages that we would like them to visit on daily basis. Then we have to make the following calculation:
To get the traffic in megabytes, simply multiply the amount of pages visited daily by the average page weight, then divide the result by 1048576, which is the amount of bytes in a megabyte.
Daily traffic in Mb = Page Weight in bytes * Daily page visits / 1048576
To obtain the traffic in gigabytes per month, generated by our website (which is usually the number used by hosting providers), we have to multiply the average weight of a web page by the amount of daily visits, then multiply by 30.41 (as months have different lengths, 30.41 is the correct number of days: as if all the months had the same duration), then divide the result by 1073741824 (the number of bytes in a gigabyte).
Monthly Traffic in Gigabytes = page weight * daily page visits * 30.41 / 1073741824
If we want to know the line speed that we need to contract in order to satisfy the needs of our website, remember that the line speed is calculated in kilobits or megabits per second (not bytes), and the following calculation is required: multiply the average page weight by the amount of daily visits then by 8 (since we entered the page weight in bytes and one byte is equivalent to 8 bits), then divide the result by the amount of seconds in a day, which is 86400, then divide by 1000 to obtain the final result in kilobits.
Required bandwidth in kilobits per second = page weight * daily visits * 8 / (86400*1000)
Now, what is the maximum bandwidth we will need? Most people agree that the traffic will increase between 2.5 and 3 times when our website gets indexed by various social networks, which means that it would be diligent, after making the calculations above, to triplicate the results before you choose the bandwidth package.
Usually, when users make these calculations, they realize what costs they incur with under-optimized websites, where there are unnecessary images, or where the quality is too high for web projects, - this way achieving a greater availability of the website without the need for more bandwidth.
In order to avoid the calculation manually you can use our tool, bandwidth estimation tool
Share this with other people