Goal-Question-Metric
Updated 2026-08-09
Summary
A goal-driven measurement framework by Victor Basili that derives metrics from questions, and questions from goals, so every measurement serves a stated purpose.
Definition
Goal-Question-Metric (GQM) is a measurement framework introduced by Victor Basili and colleagues in the 1980s for software and process measurement. It has three levels. A Goal defines the purpose, the object being measured, the quality focus, and the viewpoint, all at the conceptual level. Questions express what must be known to judge whether the goal is being met, at the operational level. Metrics specify the data to be collected to answer each question, at the quantitative level. The framework's constraint is direction: goals come first, and any metric that cannot be traced back through a question to a goal should not be collected.
Introduction
How to use
- Use goal statement: write the purpose, object, quality focus, and viewpoint before choosing any metric. - Use question derivation: ask what you would need to know to judge whether the goal is met. - Use metric pruning: delete any metric that no question actually requires.
Mechanism
Measurement programs accumulate metrics because they are easy to collect, and then produce reports that nobody uses for decisions. GQM reverses the direction of derivation: the goal determines what questions matter, and the questions determine what data is needed. Because every metric traces back to a stated purpose, the resulting data answers a question someone actually asked, which makes it actionable. The framework also bounds collection cost, since any measurement without a downstream question is cut before it consumes effort.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- A quality goal of improving code leads to the question of whether defect rates fell, answered by the metric of defects per thousand lines.
Common pitfalls
- Choosing metrics first and inventing a goal afterward, which reverses the framework and reproduces measurement drift.
- Collecting data that no question requires, which raises cost and produces reports with no decision attached.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/GQMverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS