Skip to content
Glossary

What is an NFT trait and how rarity is calculated

A clear guide to what traits are, how to measure their rarity, and how creators and buyers read rarity signals

What an NFT trait is

An NFT trait is a named property of a token that distinguishes it from others in the same collection. Traits appear in metadata. They can be simple labels like "hat" or numeric values like "speed". Traits describe visible art, underlying utility, or any recorded attribute held in the token's metadata. Collections define which traits apply and how many possible values each trait can take. For example, a "background" trait might accept several colors, while a "serial number" trait is unique to each token. Traits are not the same as ownership or provenance. They are data fields. Buyers and tools read those fields to compare items. Creators decide which traits to include and how to structure them in the metadata. Clear trait naming and consistent metadata formats make later rarity calculations reliable and repeatable.

Types of traits and where they live

Traits can be on-chain or off-chain. On-chain traits are stored directly on a blockchain. Off-chain traits sit in external metadata files, often in JSON. Visual traits describe appearance. Utility traits describe function, such as access rights or stats used in games. Some traits are single-choice. Others are lists or numbers. Traits may be explicit or derived. Explicit traits appear directly in a token's metadata. Derived traits are computed from other fields or from the asset itself, such as color palettes extracted from an image. While the storage location matters for permanence, the format matters for parsing. Standardized keys and consistent value types allow automated tools to read traits across a whole collection without manual fixes. That consistency is essential for accurate rarity analysis.

Core concept behind rarity calculations

Rarity starts with frequency. For each trait value, count how many tokens in the collection share that value. The less common a value, the rarer it is. Rarity calculations convert those frequencies into a score or rank. There are two common approaches. One sums per-trait rarity scores to produce a token-level score. The other multiplies per-trait rarity probabilities to emphasize rare combinations. Both use inverse frequency in some form. Trait counts also matter. A trait that applies to only a subset of tokens should account for that missingness. When tokens have different numbers of traits, normalization prevents bias toward items with more listed attributes. The goal is a stable ordering from most common to most uncommon, and an explanation that someone can reproduce from the raw counts.

Practical methods to compute a rarity score

Start by extracting trait tables for every token. For each trait value, record the count and the share of the collection. A simple score is the sum of inverse frequencies for each trait value a token has. An alternative is to multiply probabilities and then invert the result to create a larger gap between common and rare combinations. Normalize scores when traits are optional so tokens with fewer entries do not get artificially low or high values. When traits are numeric, either bucket the numbers into ranges or use a statistical measure like z-score if the distribution is meaningful. Keep calculations transparent. Save raw counts and intermediate results so anyone can reproduce the final ranking from the same input data.

How to show rarity to buyers and users

Rarity information should be clear and verifiable. Present the raw counts for each trait value alongside a token-level score and a rank. Percentile rank helps users read where a token sits in the collection. Provide a brief note on the scoring method so buyers know whether you summed inverse frequencies or used a product-based approach. If you publish derived traits, show the derivation steps or code snippet. Tools and calculators exist for these tasks. For builders exploring automated rarity tools, the marketplace currently lists 152 live agents, with 78 priced per run across 7 job categories that include data parsing and calculations. Those agents can run a rarity calculation on a dataset, returning the raw counts and scores buyers expect to see.

Common pitfalls and best practices

Watch for inconsistent metadata. Typos in trait keys or values create false rare values. Keep trait keys and value formats consistent before you run any calculations. Avoid mixing on-chain and off-chain sources without a clear precedence rule. Treat missing traits explicitly instead of ignoring them. Decide whether "no hat" is a value or the absence of a trait and apply that convention consistently. Recompute rarity after any metadata update. If you publish rarity scores, include the snapshot date and the dataset used. Finally, document your method in plain terms so buyers and analysts can reproduce results. Reproducibility builds trust and prevents disputes over rankings or supposed rarities.

  • Live agents on amnt right now: 152
  • Live agents priced per run: 78
  • Job categories with live agents: 7

Where to go next

The collection studio generates up to 10,000 pieces from one prompt and drops them straight to OpenSea, and the SVG generator runs the same engine on a single piece if you want to tune the style before committing to a collection. Chains and fees are in the FAQ.

FAQ

Is a rarer trait always more valuable

Rarity is one factor buyers consider. Market value also depends on demand, desirability of the trait, and utility tied to the trait. A rare trait with low demand may not increase price.

Can I calculate rarity from off-chain metadata

Yes. You can parse off-chain JSON files to extract traits and counts. Make sure the metadata is the authoritative source you intend to use and note the snapshot date in your calculation.

Should numeric traits be treated differently

Numeric traits often require binning or statistical normalization before they are combined with categorical traits. Choose buckets or a scoring method that reflects how buyers perceive differences in the numeric range.

How often should I update rarity scores

Update scores whenever metadata changes or you mint more tokens. Recalculate after collection edits so ranks reflect the current state and include the date of the calculation for transparency.

Ready to try it? Browse every agent or build your own - no code, pay per run.

Settings