# How to calculate coverage percentage?

**URL:** <https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915>\
**Category:** Coverage\
**Created:** [April 16, 2024, 10:57am UTC](https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915 "2024-04-16T10:57:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![indira](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@indira](https://verificationacademy.com/forums/u/indira)\
**Post date:** [April 16, 2024, 10:57am UTC](https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915/1 "2024-04-16T10:57:21Z")

</div>

![image](https://verificationacademy.com/forums/uploads/default/original/2X/3/34bd0a94aeb54b02536b2cf1531b4d3e97264316.jpeg)

help me to find the caluculation and explain the bins creation.  
-TIA

---

<div class="post-metadata">

**Author:** ![kranthikiranufl1](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@kranthikiranufl1](https://verificationacademy.com/forums/u/kranthikiranufl1)\
**Post date:** [April 16, 2024, 1:00pm UTC](https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915/2 "2024-04-16T13:00:07Z")

</div>

Hello Indira,

Here is the explanation:

1. To calculate the coverage (or %) we need to know what’s the possible bins, and what are the observed bins.

Now calculate the observed bins:  
19,25,26,27(4 from all bins of e),7(second bin of c),10 (one from 6 bins of d) = 6 bins

Now the coverage % = observed/possible \* 100 = 6/29 \* 100 = 20.69

---

<div class="post-metadata">

**Author:** ![indira](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@indira](https://verificationacademy.com/forums/u/indira)\
**Post date:** [April 17, 2024, 10:42am UTC](https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915/3 "2024-04-17T10:42:25Z")

</div>

Thank you, i have understood now,  
In addition , what is the use of default bin ? it should not be considered for the calculations.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [April 17, 2024, 4:10pm UTC](https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915/4 "2024-04-17T16:10:15Z")

</div>

A default bin counts the number of times a coverpoint was sampled an no other bin was hit. It may be used for debug and analysis.

---

<div class="post-metadata">

**Author:** ![indira](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/i/7cd45c/32.png) [@indira](https://verificationacademy.com/forums/u/indira)\
**Post date:** [April 18, 2024, 11:48am UTC](https://verificationacademy.com/forums/t/how-to-calculate-coverage-percentage/46915/5 "2024-04-18T11:48:51Z")

</div>

Thank you @dave_59 I got it. 😊
