Ranking methods
Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS)
The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS; Hwang & Yoon, 1981) ranks alternatives by their relative closeness to the ideal.
Introduced by Ching-Lai Hwang and Kwangsun Yoon (1981)
CKR team · 12 min read
TOPSIS ranks alternatives by how close each one is to an ideal alternative that has the best value on every criterion, and how far it is from an alternative that has the worst value on every criterion. It needs a decision matrix of numbers, the direction of each criterion and a set of weights. The result is a closeness score between 0 and 1 for each alternative.
The short version
- 01TOPSIS was introduced by Hwang and Yoon (1981) and is one of the two or three most used ranking methods in MCDM research.
- 02It is compensatory: a weak value on one criterion can be offset by strong values on others.
- 03The closeness score is relative. It depends on the other alternatives in the set, so adding or removing an alternative can change the order of the rest.
- 04TOPSIS does not produce weights. They must come from a weighting method or from the decision maker, and the source must be reported.
- 05When the closeness scores are close together, report a sensitivity analysis along with the ranking.
What TOPSIS is
TOPSIS stands for Technique for Order of Preference by Similarity to Ideal Solution. It was introduced by Hwang and Yoon in their 1981 book on multiple attribute decision making and later developed by Yoon (1987) and Hwang, Lai and Liu (1993). The method belongs to the group of distance-based or reference-point methods: alternatives are judged by their distance from reference points built from the data, rather than by adding up scores directly.
The idea is simple. From the decision matrix, TOPSIS builds two artificial alternatives. The positive ideal solution has the best observed value on every criterion; the negative ideal solution has the worst. A good alternative should be near the first and far from the second. TOPSIS measures both distances for each alternative and combines them into a single score, the relative closeness to the ideal solution.
Because it is easy to explain and to compute, TOPSIS is used in a very wide range of fields. A survey by Behzadian et al. (2012) classified several hundred applications, from supply chain management and logistics to energy, environment, engineering design, business and human resources, and health care. In most of these studies TOPSIS is combined with a separate method for the weights, such as AHP or entropy, which is why TOPSIS often appears in titles like "AHP-TOPSIS" or "entropy-TOPSIS".
When to use TOPSIS
TOPSIS is a good choice when the following conditions hold:
- The alternatives are evaluated on criteria that can be expressed as numbers on interval or ratio scales, such as cost, time, capacity, emissions or a measured score.
- A poor value on one criterion may be compensated by good values on others. Most purchasing, selection and ranking problems are of this kind.
- A complete ranking of all alternatives is needed, not only the best one.
- The weights of the criteria are already known, or will be obtained with a separate method.
- The number of alternatives is moderate, from a handful up to a few hundred. TOPSIS has no practical limit on size, but each alternative should be meaningfully comparable with the others.
TOPSIS is less suitable in some situations. If a very poor value on one criterion should rule an alternative out regardless of its other values, a non-compensatory or outranking method such as ELECTRE or PROMETHEE is a better fit, since they can stop strong performance on some criteria from hiding a serious weakness. If the decision makers want a compromise solution that limits the largest individual regret, VIKOR was designed for that purpose. If the data are linguistic judgements rather than measurements, a fuzzy version such as Fuzzy TOPSIS represents the vagueness of the judgements more honestly than treating them as exact numbers.
What TOPSIS assumes
Every MCDM method rests on assumptions, and reviewers increasingly ask authors to state them. TOPSIS makes the following ones:
- Each criterion is monotonic: for a benefit criterion, more is always better; for a cost criterion, less is always better. A criterion with an optimum in the middle, such as a room temperature, has to be transformed first, for example into the distance from the target value.
- The criteria are measured on cardinal scales, so that differences between values are meaningful. Ordinal ratings (first, second, third) do not meet this condition. Likert-type scores are often used anyway, but the assumption should then be acknowledged.
- The criteria are treated as independent. Two criteria that measure almost the same thing, such as price and price per unit, give that aspect double weight.
- The weights express the relative importance of the criteria and are applied to normalised values. The weights should therefore be set with the normalisation in mind: a weight of 0.35 means 35% of the influence on the weighted normalised matrix, not 35% of the raw units.
- The positive and negative ideal solutions are taken from the alternatives in the set. TOPSIS ranks the alternatives relative to each other, not against an external standard.
How TOPSIS works, step by step
The steps below follow Hwang and Yoon (1981) with vector normalisation and Euclidean distance, which is the form most papers use and the form CKR computes. All numbers are calculated by CKR on a small example, so they can be checked by hand or reproduced in the tool.
Step 1. Build the decision matrix
The example compares five laptops on four criteria. Price and mass are cost criteria (lower is better); battery life and user rating are benefit criteria (higher is better). The weights are 0.35 for price, 0.25 for battery, 0.15 for mass and 0.25 for rating, and they sum to 1. In a study, the weights would come from a weighting method such as AHP, BWM or CRITIC, or from the decision maker directly.
| Alternative | Price ↓ | Battery (h) ↑ | Mass (kg) ↓ | Rating ↑ |
|---|---|---|---|---|
| Laptop A | 950 | 10 | 1.4 | 4.2 |
| Laptop B | 1200 | 14 | 1.2 | 4.6 |
| Laptop C | 780 | 8 | 1.9 | 3.9 |
| Laptop D | 1050 | 12 | 1.6 | 4.4 |
| Laptop E | 880 | 9 | 1.3 | 4 |
| Weight | 0.35 | 0.25 | 0.15 | 0.25 |
Note. ↑ benefit criterion, ↓ cost criterion.
Step 2. Normalise the matrix
The criteria are measured in different units (currency, hours, kilograms and rating points), so they cannot be compared directly. TOPSIS in its original form uses vector normalisation: each value is divided by the square root of the sum of squares of its column.
For price, the square root of the sum of squares is 2197.23, so Laptop A's price of 950 becomes 950 / 2197.23 = 0.4324. The direction of the criterion is not changed at this stage: a high normalised price is still a bad value. Cost criteria are handled in Step 4.
| Alternative | Price ↓ | Battery (h) ↑ | Mass (kg) ↓ | Rating ↑ |
|---|---|---|---|---|
| Laptop A | 0.4324 | 0.4134 | 0.4172 | 0.4443 |
| Laptop B | 0.5461 | 0.5788 | 0.3576 | 0.4866 |
| Laptop C | 0.3550 | 0.3308 | 0.5662 | 0.4125 |
| Laptop D | 0.4779 | 0.4961 | 0.4768 | 0.4654 |
| Laptop E | 0.4005 | 0.3721 | 0.3874 | 0.4231 |
Step 3. Apply the weights
Each normalised value is multiplied by the weight of its criterion. After this step, a criterion with a larger weight has a larger spread of values, so it contributes more to the distances computed in Step 5.
| Alternative | Price ↓ | Battery (h) ↑ | Mass (kg) ↓ | Rating ↑ |
|---|---|---|---|---|
| Laptop A | 0.1513 | 0.1034 | 0.0626 | 0.1111 |
| Laptop B | 0.1912 | 0.1447 | 0.0536 | 0.1216 |
| Laptop C | 0.1242 | 0.0827 | 0.0849 | 0.1031 |
| Laptop D | 0.1673 | 0.1240 | 0.0715 | 0.1164 |
| Laptop E | 0.1402 | 0.0930 | 0.0581 | 0.1058 |
Step 4. Find the positive and negative ideal solutions
The positive ideal solution takes the best weighted value on every criterion: the largest value for a benefit criterion and the smallest for a cost criterion. The negative ideal solution takes the worst value on every criterion. Neither is usually a real alternative; they are reference points made up from the best and worst values in the data.
| Price ↓ | Battery (h) ↑ | Mass (kg) ↓ | Rating ↑ | |
|---|---|---|---|---|
| A+ | 0.1242 | 0.1447 | 0.0536 | 0.1216 |
| A− | 0.1912 | 0.0827 | 0.0849 | 0.1031 |
Laptop C has the lowest price and Laptop B the longest battery life, the lightest weight and the best rating, so the positive ideal combines Laptop C's price with Laptop B's other values. No laptop has all of these at once.
Step 5. Compute the distances to the ideal solutions
For each alternative, TOPSIS computes the Euclidean distance to the positive ideal () and to the negative ideal () over all criteria.
Step 6. Compute the relative closeness and rank
The relative closeness combines the two distances. It is 1 for an alternative that coincides with the positive ideal and 0 for one that coincides with the negative ideal. Alternatives are ranked from the highest closeness to the lowest.
| Alternative | S+ | S− | Closeness C | Rank |
|---|---|---|---|---|
| Laptop A | 0.0513 | 0.0508 | 0.4972 | 4 |
| Laptop B | 0.0669 | 0.0719 | 0.5180 | 1 |
| Laptop C | 0.0719 | 0.0669 | 0.4820 | 5 |
| Laptop D | 0.0512 | 0.0513 | 0.5005 | 3 |
| Laptop E | 0.0565 | 0.0586 | 0.5089 | 2 |
Note. Ranks run from the highest closeness (1) to the lowest.
Laptop B ranks first with C = 0.5180, followed by Laptop E (0.5089); Laptop C ranks last (0.4820). The closeness values lie between 0.4820 and 0.5180, a narrow range. The laptops trade price against performance, so none of them is close to either ideal, and a modest change in the weights could reorder them. A result like this should be reported together with a sensitivity analysis.
How to read the result
The relative closeness C is a number between 0 and 1. A higher value means the alternative is closer to the positive ideal and farther from the negative ideal. Three points help when interpreting it.
First, C is relative to the set of alternatives. The ideal solutions are built from the observed values, so an alternative with C = 0.80 is close to the best values in this data set, not necessarily good in any absolute sense. The same laptop could score differently if it were compared with a different group of laptops.
Second, the size of the gaps matters as much as the order. In the example, the five closeness values lie within a range of about 0.04. A difference this small means the ranking is sensitive to the weights and to small changes in the data. When the gaps are small, the ranking should be reported together with a sensitivity analysis, for example by varying each weight in turn or by running a Monte Carlo simulation of the weights, and with a comparison against one or two other ranking methods.
Third, the closeness value is not a probability or a percentage of quality. It is acceptable to say that one alternative is closer to the ideal than another, but statements such as "Laptop B is 52% good" have no meaning.
Comparing TOPSIS with other methods on the same data
Running more than one method on the same data is a common way to show that a result does not depend on the choice of method. On the laptop example, simple additive weighting (SAW) gives exactly the same order as TOPSIS. PROMETHEE II also places Laptop B first but ties three of the other laptops. VIKOR, with v = 0.5, puts Laptop A first and Laptop B fourth.
The difference with VIKOR is expected and is a useful illustration. VIKOR combines the group utility with the largest single regret of each alternative. Laptop B is the most expensive laptop, and price carries the largest weight, so its regret on price is high. TOPSIS lets Laptop B's strong battery life, low mass and high rating make up for its price. Neither result is wrong; the two methods answer slightly different questions. When methods disagree like this, the disagreement should be reported and explained, not hidden by reporting only the method that supports a preferred conclusion.
Normalisation and distance: the choices that change the result
The original TOPSIS uses vector normalisation, shown in Step 2. Many applied papers use linear normalisation instead, either dividing by the column maximum or using the min–max transformation. These choices are not equivalent. Min–max normalisation stretches every criterion to the range 0 to 1, which increases the influence of criteria with a small spread of values. Vector normalisation keeps the relative differences within each column. The ranking can change with the normalisation, so the method used should always be stated.
The same applies to the distance measure. Euclidean distance is the standard choice, but some authors use the city-block (Manhattan) distance or a weighted distance in which the weights are applied inside the distance formula rather than to the matrix. CKR uses vector normalisation, weights applied to the normalised matrix, and Euclidean distance, as in the original method.
Rank reversal in TOPSIS
Rank reversal occurs when adding or removing an alternative changes the relative order of two other alternatives. TOPSIS is known to be affected by it, because both the normalisation and the ideal solutions depend on the whole set of alternatives (García-Cascales & Lamata, 2012). If a new alternative with a very high value on one criterion is added, the positive ideal moves, and the distances of all other alternatives change with it.
In the example, removing Laptop E does not change the order of the other four laptops, but this is not guaranteed in general. Rank reversal is rarely a problem when the set of alternatives is fixed by the problem itself, such as the five suppliers who submitted bids. It matters more when the set is arbitrary or likely to change. In that case, a reviewer may ask whether the result would hold if one alternative were removed, and it is easy to check by rerunning the analysis without each alternative in turn.
Common mistakes
The following mistakes appear often in submitted papers and theses, and most of them are easy to avoid:
- Reversing cost criteria twice. TOPSIS handles cost criteria when it builds the ideal solutions, by taking the minimum instead of the maximum. If the data have already been inverted (for example 1/x), or a linear normalisation has already turned cost criteria into benefit criteria, the ideal solutions must then treat every criterion as a benefit criterion. Doing both reverses the cost criteria back again.
- Not stating the source of the weights. TOPSIS ranks with whatever weights it is given. A ranking with weights chosen by the author, without justification, is difficult to defend.
- Weights that do not sum to 1. This does not change the TOPSIS ranking, because all distances scale by the same factor, but it makes the reported weights hard to interpret and is often a sign of an error elsewhere.
- Treating ordinal data as cardinal without comment. Ranks or ordinal codes do not have meaningful differences, and distance-based methods rely on those differences.
- Reporting the ranking without the closeness values. The values show how clear the result is; the ranking alone hides whether the first alternative is far ahead or only just ahead.
- Using a different normalisation or distance from the one cited, without saying so. If the paper cites Hwang and Yoon (1981) but uses min–max normalisation, a careful reviewer will notice.
How to report TOPSIS
A methods section for a TOPSIS study should state where the decision matrix came from, the direction of each criterion, how the weights were obtained, the normalisation and distance measure, and any software used. The results section should give the closeness values as well as the ranks, and the outcome of any sensitivity or robustness check.
The paragraph below is the text CKR drafts for the example. It can be adapted for a paper; the parts that only the author can supply, such as where the data came from, are listed in the tool when it is generated.
Five alternatives (Laptop A, Laptop B, Laptop C, Laptop D and Laptop E) were evaluated against four criteria (Price, Battery (h), Mass (kg) and Rating), of which two were benefit criteria (higher values preferred) and two were cost criteria (lower values preferred).
The alternatives were ranked with the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS; Hwang & Yoon, 1981). TOPSIS is a compensatory ranking method based on distances from reference solutions; it is suited to problems in which the criteria are measured on cardinal scales, a weakness on one criterion may be offset by strength on another, and the best alternative should be close to the ideal and far from the anti-ideal. CKR vector-normalises the matrix, applies the weights, takes the positive and negative ideal solutions per criterion (by criterion direction), computes Euclidean distances to both, and ranks by closeness C_i = d⁻/(d⁺ + d⁻).
The criteria weights were: Price, 0.350; Battery (h), 0.250; Rating, 0.250; Mass (kg), 0.150.
All calculations were performed in CKR (Chakaralaya Analytics, 2026).
Still to be written by the author
- Explain how the alternatives and the criteria were chosen (for example, from the literature or with experts), with sources.
- Name the source of each criterion's data, with dates and units.
- Say why TOPSIS fits this problem better than the alternatives you considered; the property stated above is a starting point, not a justification on its own.
- State how the criteria weights were obtained (a weighting method, experts, or the literature), with sources.
Questions people ask
Is TOPSIS a weighting method or a ranking method?
TOPSIS is a ranking method. It needs the weights as an input. The weights are usually obtained with a weighting method such as AHP, BWM, entropy or CRITIC, or set directly by the decision maker.
Can TOPSIS be used with qualitative criteria?
Yes, if the qualitative judgements are first converted to numbers, for example with a rating scale. The scale should be described in the paper. If the judgements are vague, Fuzzy TOPSIS represents them as fuzzy numbers instead of single values.
Do the weights have to sum to 1?
Not for the ranking itself: multiplying all weights by the same number leaves the closeness values unchanged. It is still standard practice to normalise the weights to sum to 1 so that they can be read as shares of importance.
What is a good closeness value?
There is no fixed threshold. The closeness value only compares the alternatives in the set with each other. What matters is the order and the size of the gaps between the alternatives.
Which is better, TOPSIS or VIKOR?
Neither is better in general. TOPSIS ranks by distance to both ideal points; VIKOR seeks a compromise that balances group utility against the largest individual regret. If both are run, report both results and explain any difference.
How many alternatives and criteria can TOPSIS handle?
There is no theoretical limit. In practice, studies use from three to several hundred alternatives and from three to about twenty criteria. With many criteria, check that they do not overlap.
Checked
CKR's TOPSIS was compared with pyDecision 5.1.8 and pymcdm 1.4.0, three datasets. How every method was checked
References
Hwang, C.-L., & Yoon, K. (1981). Multiple attribute decision making: Methods and applications. Springer. https://doi.org/10.1007/978-3-642-48318-9
Yoon, K. (1987). A reconciliation among discrete compromise solutions. Journal of the Operational Research Society, 38(3), 277–286. https://doi.org/10.1057/jors.1987.44
Hwang, C.-L., Lai, Y.-J., & Liu, T.-Y. (1993). A new approach for multiple objective decision making. Computers & Operations Research, 20(8), 889–899. https://doi.org/10.1016/0305-0548(93)90109-V
Behzadian, M., Khanmohammadi Otaghsara, S., Yazdani, M., & Ignatius, J. (2012). A state-of the-art survey of TOPSIS applications. Expert Systems with Applications, 39(17), 13051–13069. https://doi.org/10.1016/j.eswa.2012.05.056
García-Cascales, M. S., & Lamata, M. T. (2012). On rank reversal and TOPSIS method. Mathematical and Computer Modelling, 56(5–6), 123–132. https://doi.org/10.1016/j.mcm.2011.12.022