Goal Question Metric (GQM)
What is Goal Question Metric (GQM)?
Goal Question Metric (GQM) is a measurement approach developed by Victor Basili in which teams define a goal, ask questions that test progress toward it, and choose only the metrics that answer those questions.
Updated November 2026 · 3 min read
Goal Question Metric (GQM) is a method for choosing metrics by working down from goals. A team first states a measurement goal, then writes the questions that would show whether the goal is being met, then picks the metrics that answer each question. The result is a small, purposeful set of measures, each traceable to a reason for collecting it, instead of a dashboard full of numbers nobody uses.
GQM was developed by Victor Basili and colleagues at the University of Maryland, originally to evaluate defects in software projects at NASA's Goddard Space Flight Center in the 1980s. It became a standard approach in software engineering measurement and has since spread to product management, operations and process improvement, wherever teams need to decide what to measure.
The three levels of GQM
| Level | Name | Purpose | Example |
|---|---|---|---|
| Conceptual | Goal | What you want to understand or improve, for which object and from whose viewpoint | Improve the reliability of the mobile app from the user's viewpoint |
| Operational | Question | What you need to know to judge progress toward the goal | How often do users experience crashes? |
| Quantitative | Metric | Data that answers the question | Crash-free sessions as a percentage of all sessions, per release |
One goal usually produces several questions, and one metric can answer more than one question. The structure is a tree, which makes it easy to see why each metric exists and which metrics are missing.
Writing a GQM goal
The classic GQM goal template has five parts, which force a goal to be precise:
- Object: what is being studied, such as a product, process or feature.
- Purpose: why, such as to understand, evaluate, predict or improve.
- Quality focus: which attribute, such as reliability, adoption, cost or speed.
- Viewpoint: from whose perspective, such as users, support or management.
- Context: the environment, such as a team, product line or market.
For example: "Analyze the onboarding flow, for the purpose of improvement, with respect to activation, from the viewpoint of new trial users, in the context of the self-serve plan."
How to apply GQM
- Define a few goals. Start with two or three goals tied to product or business objectives, written with the template.
- Write questions for each goal. Ask what someone would need to know to decide whether the goal is being met. Aim for three to five questions per goal.
- Select metrics. For each question, choose metrics that answer it, reusing existing data where possible.
- Define the metrics precisely. Record formulas, data sources, segments and collection frequency so the numbers are consistent.
- Collect and interpret. Gather data, answer the questions and judge progress against the goal.
- Prune and revise. Drop metrics that answer no question, and update the tree when goals change.
A GQM example
Consider a hypothetical support team at a SaaS company with the goal: "Improve the efficiency of support from the customer's viewpoint." It writes three questions and picks metrics for each:
| Question | Metric | Current value |
|---|---|---|
| How quickly do customers get a first reply? | Median time to first response | 4 hours |
| How often is the issue solved in one interaction? | First contact resolution: tickets solved in the first reply ÷ all solved tickets | 1,100 ÷ 2,500 = 44% |
| How much effort do customers spend? | Average customer effort score after resolution | 3.8 on a 7-point scale |
Before GQM, the team's dashboard tracked 22 metrics, including total ticket volume and agent logins, which answered none of these questions. The GQM tree shows that first contact resolution is the weakest area, so the team focuses improvement work there. The figures are illustrative.
GQM vs. other metric frameworks
GQM is a general method for deriving metrics from any goal. Google's HEART framework follows a similar goals-signals-metrics pattern but is specific to user experience. OKRs set objectives and targets for a period, and GQM can help choose the key results by clarifying what each objective really requires. A KPI tree breaks a top metric into its drivers, while GQM starts from a goal and works out what to measure.
Common pitfalls
- Starting with available data. Working backward from what is easy to measure recreates the problem GQM is meant to solve.
- Vague goals. "Improve quality" generates vague questions. Use the template.
- Too many metrics. If every question gets five metrics, the result is another overloaded dashboard.
- Collecting without interpreting. The point is to answer the questions and act, not to fill a report.
GQM supports product metrics design and helps teams avoid vanity metrics. It is a practical foundation for data-driven decision making.
Frequently asked questions
How do you write a goal in the Goal Question Metric approach?
A GQM goal uses a five-part template: the object being studied, the purpose (such as understand or improve), the quality focus (such as reliability or adoption), the viewpoint of who cares, and the context. Filling in every part turns a loose aim like improve quality into something specific enough to generate sharp questions and a small set of useful metrics.
What is the difference between GQM and the HEART framework?
GQM is a general method for deriving metrics from any goal, in software, operations or product work. HEART applies a similar goals, signals and metrics pattern but is built specifically for user experience, with five fixed categories such as happiness and task success. Teams can use GQM thinking to decide which HEART categories matter. See HEART framework.
How many questions and metrics should each GQM goal have?
A practical target in GQM is three to five questions per goal, with each question answered by one or a few metrics. One metric may serve several questions. Starting with only two or three goals keeps the tree manageable. If every question collects five metrics, the result is another overloaded dashboard, which is the problem GQM is meant to prevent.
Related terms
HEART Framework
Five categories for picking UX metrics that match real product goals.
Product Metrics
Numbers that track product usage and the value it creates.
Vanity Metrics
Impressive-looking numbers that don't inform any decision.
Data-Driven Decision Making
Basing decisions on evidence instead of intuition or rank.