# How is "TOP topics" list calculated?

**URL:** https://meta.discourse.org/t/how-is-top-topics-list-calculated/33752
**Category:** Support
**Created:** [September 25, 2015, 4:23pm UTC](https://meta.discourse.org/t/how-is-top-topics-list-calculated/33752 "2015-09-25T16:23:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [September 25, 2015, 4:23pm UTC](https://meta.discourse.org/t/how-is-top-topics-list-calculated/33752/1 "2015-09-25T16:23:03Z")

</div>

I tried to search for but could not find any overview of the algorithm to display `/top/xxx` topics , e.g. `/top/monthly`.

At least, what variables are considered and with what weight? What is more important and what is less? I need this to explain to my users which will participate in “top topic of the month” contest.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 25, 2015, 4:24pm UTC](https://meta.discourse.org/t/how-is-top-topics-list-calculated/33752/2 "2015-09-25T16:24:53Z")

</div>

Have a look at the [`top_topic.rb`](https://github.com/discourse/discourse/blob/master/app/models/top_topic.rb) file 😉

> <https://github.com/discourse/discourse/blob/main/app/models/top_topic.rb#L143-L192>

---

<div class="post-metadata">

### Author: ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)
#### Post date: [May 23, 2019, 11:55am UTC](https://meta.discourse.org/t/how-is-top-topics-list-calculated/33752/3 "2019-05-23T11:55:54Z")

</div>

It would seem natural to me for this score value to come back in the top topics API response objects. Is that present somewhere that I’m overlooking?

Because I am accumulating top posts over time, I want to have a way to compare how “top” they are relative to one another. Therefore, I’m using this formula as a starting point.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/how-is-top-topics-list-calculated/33752/4 "2024-06-08T12:37:08Z")

</div>

This topic was automatically closed after 3178 days. New replies are no longer allowed.
