> For the complete documentation index, see [llms.txt](https://docs.bit5.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bit5.com/product-guides/marketplace/nft-rarity-calculation.md).

# NFT Rarity Calculation

There are 4 known rarity calculation methods:

* Trait Rarity Ranking
* Average Trait Rarity
* Statistical Rarity
* Rarity Score

We are using the Rarity Score method, which is used by `rarity.tools`.

In this method an attribute’s rarity score is calculated by this formula:

`11 / ([Number of Items with that Trait Value] / [Total Number of Items in Collection])`

So, we are calculating all attribute rarity scores with this method and sum all of them to find the item rarity scores.
