The TM-score (Template Modeling score) is a quantitative metric that measures the structural similarity between two protein conformations, typically a predicted model and an experimental reference. Unlike RMSD, it is designed to be length-independent, solving the problem where small local errors in large proteins disproportionately penalize the global similarity score. The metric weights residue pairs at smaller distances more heavily, providing a value between 0 and 1 where scores above 0.5 generally indicate the same overall fold topology.
Glossary
TM-score

What is TM-score?
A scale-invariant metric for assessing the topological similarity between two protein structures, designed to be independent of protein size and to provide an intuitive measure of structural fold agreement.
The calculation normalizes the error by a length-dependent scale factor, making it a more intuitive measure of fold-level agreement across diverse protein sizes. A score of 1.0 indicates a perfect match, while a score below 0.17 corresponds to random structural similarity. Because it is insensitive to local structural outliers, TM-score is a standard evaluation metric in blind challenges like CASP and is often reported alongside RMSD and GDT-TS to provide a holistic assessment of prediction accuracy.
TM-score vs. RMSD: Key Differences
A comparison of the two primary metrics for evaluating protein structure prediction accuracy, highlighting their sensitivity to domain size, local deviations, and global fold agreement.
| Feature | TM-score | RMSD | GDT-TS |
|---|---|---|---|
Primary Assessment | Global fold topology | Average atomic distance | Global superposition accuracy |
Scale Invariance | |||
Length Dependence | Independent (0-1 scale) | Dependent (absolute Å) | Independent (0-100 scale) |
Sensitivity to Local Outliers | Low (robust) | High (dominated by outliers) | Moderate |
Random Structure Score | ~0.17 | Varies with size | ~0 |
Perfect Match Score | 1.0 | 0.0 Å | 100 |
Statistical Significance Threshold |
| < 2.0 Å (high similarity) |
|
Calculation Basis | Cα distance with length-dependent scaling | Cα distance after optimal superposition | Fraction of residues under distance cutoffs |
Frequently Asked Questions
Clear, technical answers to the most common questions about the TM-score metric, its calculation, interpretation, and role in assessing protein structure prediction accuracy.
The Template Modeling score (TM-score) is a scale-invariant metric designed to assess the topological similarity between two protein structures. It is calculated as a weighted superposition of corresponding residue pairs, where the weighting scheme emphasizes closer residue pairs over distant ones, making it more sensitive to global fold correctness than local deviations. The formula is:
codeTM-score = (1/L_target) * Σ [1 / (1 + (d_i / d_0(L_target))^2)]
Where L_target is the length of the target protein, d_i is the distance between the i-th pair of aligned residues after optimal superposition, and d_0(L_target) is a length-dependent normalization factor defined as 1.24 * ∛(L_target - 15) - 1.8. This normalization ensures the score is independent of protein size, with values ranging from 0 to 1, where a score above 0.5 generally indicates the two structures share the same fold.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Key Properties of TM-score
TM-score is a scale-invariant metric designed to overcome the length-dependent biases of traditional measures like RMSD, providing an intuitive 0–1 scale for assessing topological similarity between protein structures.
Scale Invariance and Length Independence
Unlike RMSD, which increases with protein size, TM-score is normalized by a length-dependent scale factor. This ensures that a score of 0.5 means the same degree of structural similarity regardless of whether the protein has 50 or 500 residues.
- d0 normalization: The metric uses a distance scale
d0 = 1.24 * ∛(N - 15) - 1.8to normalize residue pair distances - Statistical robustness: Random structure pairs converge to a TM-score of ~0.17, while scores >0.5 indicate the same fold
- Size-independent comparison: Enables fair benchmarking across diverse protein families and domains
Intuitive 0–1 Scoring Range
TM-score maps structural similarity to a bounded range where 0 represents completely dissimilar structures and 1 represents identical structures. This linear scale provides immediate interpretability for assessing model quality.
- Fold discrimination threshold: A TM-score ≥ 0.5 reliably indicates that two proteins share the same global fold topology
- CASP benchmark standard: Adopted as an official metric in the Critical Assessment of Structure Prediction experiments
- Complementary to RMSD: While RMSD measures absolute deviation in Ångströms, TM-score captures topological agreement
Weighted Residue Pair Distance
TM-score applies a sigmoidal weighting function to each aligned residue pair, down-weighting distant residue pairs that would otherwise dominate the score. This focuses the metric on the core structural alignment.
- Weighting formula: Each residue pair contributes
1 / (1 + (dᵢ/d₀)²)to the final score - Outlier suppression: Large local deviations from distant domains or flexible loops are naturally penalized less
- Global topology focus: The weighting emphasizes overall fold agreement over local fluctuations
Optimal Superposition Independence
TM-score is computed after an optimal structural alignment that maximizes the metric itself, not a separate objective like minimum RMSD. This self-consistent approach ensures the superposition is optimized for topological similarity.
- TM-align algorithm: Uses dynamic programming and iterative refinement to find the rotation matrix and residue correspondence that maximize TM-score
- Sequence-order dependent: Unlike GDT-TS, TM-score respects sequential residue ordering, making it sensitive to circular permutations
- Heuristic search: Employs gapless threading and secondary structure matching for initial alignment seeding
Relationship to GDT-TS and MaxSub
TM-score belongs to a family of topology-focused metrics that evaluate structural similarity by rewarding correctly aligned core regions rather than penalizing flexible loops or disordered termini.
- GDT-TS comparison: Global Distance Test–Total Score uses fixed distance thresholds (1, 2, 4, 8 Å) while TM-score uses a continuous weighting function
- MaxSub similarity: Both metrics emphasize the largest well-aligned substructure, but TM-score normalizes by protein size
- Complementary usage: CASP reports both GDT-TS and TM-score to provide a multi-faceted assessment of prediction quality
Statistical Significance and Random Baseline
The expected TM-score for random unrelated protein pairs is approximately 0.17, with a standard deviation that decreases as protein length increases. This well-characterized null distribution enables rigorous statistical assessment.
- P-value estimation: The probability of observing a given TM-score by chance can be estimated from the extreme value distribution
- Fold space coverage: TM-score distributions across the PDB reveal clustering patterns corresponding to known fold classifications
- Normalization validation: The d0 parameter was empirically calibrated to produce length-independent random scores across the protein size range

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us