Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

NFT Rarity

A quantitative measure of an NFT's uniqueness within a collection, calculated from the scarcity and combination of its on-chain traits.
Chainscore © 2026
definition
BLOCKCHAIN GLOSSARY

What is NFT Rarity?

A technical breakdown of the attributes and methodologies that determine the scarcity and uniqueness of a non-fungible token within a collection.

NFT Rarity is a quantitative and qualitative measure of a non-fungible token's relative scarcity and uniqueness compared to other tokens within the same collection, determined by the combination and statistical frequency of its on-chain and off-chain metadata attributes. This concept is fundamental to the valuation and collectibility of NFTs, as rarer traits—such as a specific background color, accessory, or character feature that appears in fewer minted tokens—are often perceived as more valuable. Rarity is not an inherent property but a derived ranking based on the distribution of traits across the entire collection's population.

Rarity is primarily calculated through trait-based scoring. Each NFT's metadata is parsed to identify its attributes (e.g., Hat: Crown, Background: Space). A rarity score is then computed, often using methodologies like Trait Rarity Ranking (summing the inverse frequency of each trait) or Jaccard Distance (measuring overall uniqueness). Platforms like Rarity Tools and Rarity Sniper aggregate this data to produce leaderboards. It's crucial to distinguish between statistical rarity (simple trait frequency) and perceived rarity, which can be influenced by community demand, artistic appeal, or the prestige of certain trait combinations.

Beyond basic traits, several advanced factors influence rarity. Overall Rarity Rank places a token within the full spectrum of its collection. Single-attribute rarity highlights the rarest individual trait a token possesses. Some collections feature hidden or unrevealed attributes that are not known until after the minting process, adding a layer of speculation. Furthermore, property categories themselves can have varying rarities; a collection with ten possible hats but only one possible crown makes the 'Hat' category a more significant differentiator. Understanding these layers is key for analytical collecting.

The ecosystem relies on rarity aggregation platforms and oracles to fetch, calculate, and display this data. However, challenges exist: metadata can be stored off-chain (e.g., on IPFS), leading to centralization risks; trait weighting is often arbitrary unless defined by the creator; and generative art projects must ensure verifiable randomness in trait distribution at mint. For developers and analysts, verifying the provenance of rarity data and the immutability of the underlying metadata is as important as the score itself.

In practice, rarity drives key market behaviors. It informs pricing on NFT marketplaces, fuels breeding mechanics in gaming NFTs where offspring inherit traits, and establishes social signaling within communities. Projects like CryptoPunks and Bored Ape Yacht Club have their markets deeply segmented by rarity tiers. Ultimately, while a powerful heuristic, NFT rarity is one component of value, interacting with broader factors like utility, creator reputation, liquidity, and speculative demand in the dynamic digital asset landscape.

how-it-works
MECHANICS

How NFT Rarity is Calculated

A technical breakdown of the methodologies and algorithms used to determine the scarcity and value of individual tokens within a non-fungible token (NFT) collection.

NFT rarity calculation is the process of algorithmically determining the relative scarcity of an individual token within a collection by analyzing the combination and frequency of its traits or attributes. The core principle is that traits appearing less frequently across the collection contribute more to an NFT's overall rarity score. This quantitative assessment is foundational to secondary market valuation, where rarer items typically command higher prices. Common calculation methods include trait rarity ranking, rarity score summation, and statistical models like Jaccard Distance or Trait Normalization.

The most fundamental approach is the trait rarity ranking method, where each trait value is assigned a rank based on its occurrence. For example, if only 1% of NFTs in a 10,000-item collection have a "Gold Background," that trait is considered extremely rare. An NFT's overall rarity score is then calculated by summing the rarity scores (often the inverse of the trait's frequency) of all its individual attributes. More sophisticated models, like the Rarity Tools model, use a logarithmic scale for summation to prevent any single ultra-rare trait from disproportionately dominating the final score.

Advanced statistical models address limitations in simple summation. The Jaccard Distance (or NFTGo Rarity) model calculates rarity by comparing an NFT's trait set to every other NFT in the collection, measuring its statistical uniqueness. The Trait Normalization method accounts for the varying number of traits per category, ensuring a "Background" trait with 5 options isn't weighted the same as an "Accessory" trait with 50 options. These models aim to produce a more nuanced rarity ranking that reflects true scarcity within the collection's specific structure.

Rarity data is sourced directly from a collection's metadata, typically stored on-chain via a smart contract or referenced on decentralized storage like IPFS. Dedicated rarity platforms and marketplaces use this metadata to compute and display real-time rankings. It is crucial for collectors to verify that the calculation methodology aligns with their valuation strategy, as different models can produce different rankings for the same NFT. Understanding the underlying math is key to informed participation in the NFT ecosystem.

key-features
MECHANICS & METRICS

Key Features of NFT Rarity

NFT rarity is a quantifiable measure of an asset's scarcity and uniqueness within a collection, determined by the distribution of its traits and metadata. Understanding these core features is essential for valuation and collection strategy.

01

Trait-Based Rarity

The foundational model where an NFT's overall rarity score is calculated from the combined scarcity of its individual attributes. Common traits lower the score, while rare traits (e.g., a 'Gold Background' in a collection of 10,000 where only 50 have it) significantly increase it. Rarity is often expressed as a percentile rank (e.g., 'Top 1%').

02

Rarity Scoring Models

Different mathematical models aggregate trait data to produce a single rarity score.

  • Trait Rarity Ranking: Simple sum of the inverse rarity of each trait (1/%)
  • Statistical Rarity: Multiplies trait probabilities, favoring NFTs with multiple rare traits.
  • Information Content (IC): Uses -log2(probability), weighting rarer traits more heavily. Platforms like Rarity Tools and Rarity Sniper apply these models, sometimes yielding different rankings for the same NFT.
03

Metadata & Provenance

Rarity is anchored in an NFT's on-chain metadata (stored on the blockchain) or off-chain metadata (referenced via a URI, often on IPFS). The immutability of this data guarantees provable scarcity. Key components include the tokenURI, which points to a JSON file containing the trait definitions, and the provenance hash, which cryptographically seals the collection's metadata to prevent post-mint manipulation.

04

Subjective Rarity & Utility

Not all rarity is algorithmic. Subjective rarity is driven by cultural value, artist reputation, historical significance (e.g., first mint in a collection), or membership in a coveted set (e.g., 'Founder' NFTs). Utility-based rarity grants exclusive access to events, games, or governance rights, creating demand independent of visual traits. This layer often drives significant price divergence from pure trait-based scores.

05

Rarity Distribution & Floor Price

A collection's rarity distribution—the curve from common to ultra-rare NFTs—directly impacts market dynamics. A long-tail distribution with a few extremely rare items creates a high floor price for common items, supported by the lottery-ticket potential of minting a rare one. Analysis often involves studying the rarity vs. price correlation to identify undervalued assets.

common-calculation-methods
NFT RARITY

Common Rarity Calculation Methods

Rarity calculation methods are algorithms used to rank NFTs within a collection by quantifying the uniqueness of their traits. Different methods produce different rankings, making the choice of methodology a key factor in valuation.

01

Trait Rarity Ranking (Rarity Score)

This is the most fundamental method. It calculates a rarity score for each NFT by summing the inverse frequency of its individual traits.

  • Formula: Score = ÎŁ (1 / Trait Frequency) for all traits.
  • A trait owned by 1% of the collection contributes 100 to the score.
  • Example: If an NFT has a 'Gold Background' (1%) and 'Laser Eyes' (2%), its base score is (1/0.01) + (1/0.02) = 100 + 50 = 150. It's simple but can be skewed by common traits and doesn't account for trait combinations.
02

Statistical Rarity (Jaccard Distance)

This method evaluates rarity based on the overall statistical similarity between NFTs. It uses Jaccard Distance to measure how different one NFT is from all others in the collection.

  • Compares the set of traits between two NFTs.
  • An NFT's rarity is its average distance from every other NFT.
  • Key Insight: An NFT with common traits arranged in a unique combination can rank highly. It is more computationally intensive but captures the nuance of overall uniqueness beyond simple trait sums.
03

Information Content (Trait Rarity Percentage)

This method, popularized by platforms like Rarity Tools, refines the basic score by using the trait rarity percentage directly in the sum.

  • Formula: Score = ÎŁ (1 / (Trait Count with Trait / Total NFTs)).
  • It's mathematically identical to Trait Rarity Ranking but expresses the trait's rarity as a clear percentage (e.g., 1.23%).
  • The final score is an abstract number where a higher value indicates greater rarity. It became an early standard for collections like CryptoPunks and Bored Ape Yacht Club, establishing a common benchmark.
04

Average Rarity

This approach aims to normalize scores by calculating the average rarity of an NFT's traits, rather than the sum.

  • Formula: Score = (ÎŁ Trait Rarity) / Number of Traits.
  • Purpose: Prevents NFTs with many common traits from achieving artificially high scores simply by having more traits.
  • It favors NFTs with consistently rare traits across the board. This method can significantly reorder rankings compared to summation-based models, often elevating items with fewer but exceptionally rare attributes.
05

Rarity Score Normalization

Because raw rarity scores can vary wildly in scale between collections, normalization is used to create a standardized 0-100 scale for comparison.

  • Process: The highest raw score in a collection is set to 100. All other scores are scaled proportionally.
  • Example: If the top score is 2500, an NFT with a score of 1250 gets a normalized score of 50.
  • This allows for intuitive cross-collection comparisons and is used by marketplaces like OpenSea in their ranking filters.
06

Market-Based Rarity (Trait Floor Price)

This is a market-driven, non-algorithmic method. Rarity is inferred from the trait floor price—the lowest price for any NFT in the collection possessing a specific trait.

  • Mechanism: Scrapes marketplace listings to find the minimum sale price for each trait.
  • Insight: Reflects real-time collector demand, which may differ from statistical rarity. A statistically common trait with high utility (e.g., a game item) can have a high floor. It provides a purely economic perspective, showing what the market is willing to pay for specific attributes.
ecosystem-usage
ECOSYSTEM USAGE & TOOLS

NFT Rarity

NFT rarity quantifies the uniqueness of a token within a collection based on its attributes, driving valuation and collector strategy. It is a foundational metric for marketplaces, analytics platforms, and trading tools.

01

Rarity Scoring Algorithms

Rarity is calculated by analyzing the trait distribution across a collection. Common methods include:

  • Trait Rarity Ranking (TRR): Sums the inverse frequency of each trait.
  • Statistical Rarity: Multiplies the probabilities of each trait occurring.
  • Jaccard Distance: Measures overall uniqueness relative to other NFTs in the set. Platforms like Rarity Sniper and Rarity Tools implement these algorithms to generate scores.
02

Marketplace Integration

Major NFT marketplaces like OpenSea, Blur, and Magic Eden display rarity metrics directly on asset pages. Features include:

  • Rarity rank (e.g., #45 out of 10,000).
  • Trait breakdowns showing the percentage of the collection sharing each attribute.
  • Filtering and sorting by rarity score, enabling collectors to discover undervalued assets.
04

Trait-Based Valuation Models

Rarity scores feed into pricing models that estimate an NFT's market value. These models analyze:

  • Base price of the collection.
  • Premium multipliers for rare trait combinations.
  • Historical sales data of NFTs with similar rarity profiles. Tools like Upshot and NFTBank use machine learning to provide price estimates based on these factors.
05

Rarity in Generative Art & PFP Projects

Rarity is central to generative art and Profile Picture (PFP) collections like Bored Ape Yacht Club or CryptoPunks. Key concepts include:

  • Layered assets: NFTs are programmatically generated from layers (background, body, headwear, etc.).
  • Trait scarcity: Some traits are intentionally minted at lower frequencies (e.g., 1% have laser eyes).
  • Floor vs. Rarity Premium: Common traits set the collection's floor price, while rare traits command significant premiums.
06

Limitations & Critiques

While useful, rarity scoring has notable limitations:

  • Subjectivity of Traits: Algorithmic scores may not reflect cultural or aesthetic desirability.
  • Trait Dependency: Scores can be gamed if traits are not independent (e.g., a 'hat' trait implying a 'head').
  • Market Dynamics: Rarity does not guarantee liquidity; market sentiment and utility often drive final price. Advanced models now incorporate trait weighting and community sentiment to address these issues.
METHODOLOGY

Rarity Calculation Method Comparison

A comparison of the primary algorithmic approaches for calculating NFT rarity, detailing their core mechanics, strengths, and limitations.

Feature / MetricTrait Rarity Ranking (TRR)Rarity Score (RS)Information Theory (IT)

Core Calculation

Sum of individual trait rarity percentiles

Sum of inverse trait rarity frequencies (1 / %)

Sum of Shannon entropy (-p * log2(p)) per trait

Output Type

Rank (ordinal)

Score (continuous)

Score (continuous)

Handles Common Traits

Sensitive to Rare Traits

Statistical Foundation

Descriptive

Descriptive

Information-theoretic

Complexity for Users

Low

Medium

High

Common Tools Using Method

Rarity.tools (legacy)

Rarity Sniper, RaritySniffer

Iceberg, Genie

Example Score for 1% trait

99 (percentile rank)

100 (1 / 0.01)

0.0664 (-0.01 * log2(0.01))

DEBUNKED

Common Misconceptions About NFT Rarity

Rarity is a foundational concept in NFT valuation, but it is often misunderstood. This section clarifies the technical realities behind rarity scores, traits, and their relationship to market value.

No, a lower trait percentage does not automatically confer higher value. Rarity is a measure of statistical scarcity, but value is determined by market demand. A trait with a 1% occurrence may be undesirable (e.g., a 'Scowl' on a PFP project), while a 10% trait considered 'legendary' by the community may command a premium. Value is a function of subjective desirability intersecting with objective scarcity, not scarcity alone. Analysts must examine trait-pricing correlations and community sentiment, not just the rarity dashboard.

NFT RARITY

Technical Details & Mechanics

This section deconstructs the technical frameworks and quantitative methods used to define, calculate, and verify the rarity of Non-Fungible Tokens (NFTs). It covers the underlying data structures, scoring algorithms, and on-chain verification processes.

NFT rarity is a quantitative measure of an NFT's uniqueness and scarcity within a collection, derived from the statistical distribution of its traits and attributes. It is calculated by analyzing the metadata of all NFTs in a collection to determine how common or rare each individual trait is. The core calculation involves:

  • Trait Rarity: The rarity of a single trait is typically the inverse of its frequency. For example, if only 1% of NFTs have "Gold Background," that trait is rare.
  • Aggregate Scoring: An NFT's overall rarity score is computed by combining the rarities of all its traits. Common methods include:
    • Trait Rarity Ranking: Summing or averaging the rarity scores of each trait.
    • Rarity Score Models: Using formulas like the Jaccard Distance or statistical models that account for trait combinations.
  • Tools & Standards: Platforms like Rarity Tools, Rarity Sniper, and OpenRarity provide standardized scoring methodologies, though no single universal standard exists.
NFT RARITY

Frequently Asked Questions (FAQ)

Essential questions and answers about NFT rarity, covering how it's determined, its impact on value, and the tools used to analyze it.

NFT rarity is a measure of the relative scarcity of a non-fungible token within a collection, determined by the statistical uniqueness of its combination of traits or attributes. It is calculated by analyzing the entire collection's metadata to identify how common or rare each individual trait is, then combining those probabilities to determine an overall rarity score for each NFT. Common methods include:

  • Trait Rarity Ranking: Assigning a rank based on the sum or product of the inverse frequency of each trait.
  • Rarity Score: A numerical value where a higher score indicates greater rarity, often calculated as 1 / (Trait_1_Rarity%) * 1 / (Trait_2_Rarity%).
  • Statistical Models: Some platforms use more complex models that account for trait weighting or combinations. The process is automated by rarity tools like Rarity Sniper or Rarity.tools, which scrape blockchain data to provide rankings.
ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team