# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bit5.com/product-guides/marketplace/nft-rarity-calculation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
