An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to

April 30, 2008

Show the Real Number of Search Results in Gmail

Update (June 2013): This no longer works. Try another trick.

When you search for something in Gmail and there are many search results, you'll see a vague message like "1 - 20 of thousands". In other cases, Gmail shows that there are about 80 results, when the real number is 78. But what if you want to find the actual number of results instead of an estimation? If you have the new version of Gmail, it's really easy to add more precision thanks to permalinks.

(Small digression: I'm sure that Opera users will stop reading this post because Gmail 2.0 doesn't support their browser, but the User JS file from this page fixes the compatibility issues and you can use the tip below. )

Let's say you want to find the number of conversations that contain Google, but don't have the label .Comments. You will search for:
google -label:.Comments (a shorter query: google -l:.Comments)

The address bar should display this URL:

If you go to the next pages of search results, you'll notice that Gmail appends /p2, /p3 etc. to the previous URL. To see the actual number of search results, force Gmail to display an arbitrary page. For example, you can display the page #1000 if you estimate that the number of search results is smaller than 20*1000=20000. Just append /p1000 to the address and get something like:

or more generally:

Unfortunately, if you manually modify the address, Gmail no longer updates it when you go to a different section, so you need to refresh the page.


  1. It's worth nothing you can do that in other Google searches as well.

    Like this week I used the same trick to try to quantify source code with various software licences on Google Code Search: blog post. Conclusion: Google's estimates can be out by a factor of 10,000! (That was the case with the Apache licence.)

  2. Glad to hear that the user JS is working well for you ;-)

  3. Good one. I like that you accept drawback of your software. And best part is that you are trying to improve that.

  4. Google's estimates can be out by a factor of 10,000! (That was the case with the Apache licence.)

  5. I've been told that the estimates are off because it takes so long for Google to update all of their servers, being that they have an enormous amount.