# Total size doesn't equal size of elements?

**URL:** <https://discuss.httparchive.org/t/total-size-doesnt-equal-size-of-elements/1778>\
**Category:** Uncategorized\
**Created:** [November 1, 2019, 1:00pm UTC](https://discuss.httparchive.org/t/total-size-doesnt-equal-size-of-elements/1778 "2019-11-01T13:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![milara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/milara/32/1677_2.png) [@milara](https://discuss.httparchive.org/u/milara)\
**Post date:** [November 1, 2019, 1:00pm UTC](https://discuss.httparchive.org/t/total-size-doesnt-equal-size-of-elements/1778/1 "2019-11-01T13:00:59Z")

</div>

According to the Page Weight report, looking at data for the last year, the median web page size is 1950.4 KB.

I originally assumed that the resources requested by the page added together would equal this median number.

- CSS Bytes - 63.2 KB
- Font Bytes - 121.7 KB
- HTML Bytes - 27.2 KB
- Image Bytes - 982.3 KB
- JS Bytes - 412.6 KB
- Other Bytes - 0.8 KB
- Video Bytes - 1372.8 KB  
TOTAL: 2980.6 KB

Can someone explain the difference between these numbers? Or is this simply an artifact of reporting the median (i.e. there is no mathematical requirement that the median be a total of the medians of the components)? For context regarding why I care, please see my next post, which I will make after creating this topic. Thanks!

---

<div class="post-metadata">

**Author:** ![rviscomi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/rviscomi/32/835_2.png) [@rviscomi](https://discuss.httparchive.org/u/rviscomi)\
**Post date:** [November 6, 2019, 6:45pm UTC](https://discuss.httparchive.org/t/total-size-doesnt-equal-size-of-elements/1778/2 "2019-11-06T18:45:10Z")

</div>

You’re correct; summing medians of each resource does not necessarily add up to the median total. What you might be looking for is the average: [https://legacy.httparchive.org/interesting.php#bytesperpage](https://legacy.httparchive.org/interesting.php#bytesperpage). Averages can be misleading so that’s why we’re using medians now.
