Search & Research

PageRank and the Idea That Links Are Votes

Follow a small worked example of PageRank and learn why links became a measure of importance on the web.

Key takeaways

  • PageRank scores a page by the scores of the pages linking to it, divided by how many links each of those pages has.
  • The calculation is circular, so it is solved by repeating it until the numbers settle.
  • A damping factor models a reader who sometimes jumps to a random page, which keeps the math well behaved.
  • Because links have value, spam and link schemes appeared, and engines now treat many kinds of links skeptically.

PageRank is a method for estimating how important a page is by looking at the links pointing to it. Each link acts like a vote, but votes aren't equal: a link from an important page counts for more, and a page that links to many others splits its influence among them.

Larry Page and Sergey Brin developed it at Stanford in the late 1990s, and it became a foundation of the Google search engine. Modern ranking uses far more than PageRank, yet the idea still explains why links matter and why people try so hard to fake them.

Early web search leaned heavily on the words in a page. That was easy to manipulate: anyone could repeat a popular term hundreds of times. Text alone also couldn't separate an authoritative page from a hobby page using the same vocabulary.

Links offered outside evidence. When one author links to another's page, it's a small sign that the destination was worth mentioning. Academic citations work similarly, where a paper cited often by other influential papers draws attention.

Simple counting has a flaw, though. A thousand links from pages nobody visits shouldn't outweigh a few from highly regarded ones. PageRank addresses that by letting importance flow.

The random reader

Picture someone browsing forever. On each page, they click one of its links, chosen at random. Occasionally they get bored and jump to a random page instead. Over a very long session, some pages are visited much more often than others.

A page's PageRank is essentially the share of time this imaginary reader spends there. Pages with many incoming links from well-visited pages get visited often. This framing is called the random surfer model.

The chance of following a link instead of jumping is set by the damping factor. The original paper mentions a value of 0.85, so roughly 15 percent of moves are random jumps.

The formula in plain words

A common way to write it for a page A is:

PR(A) = (1 - d) / N + d * sum of ( PR(B) / L(B) )

Here d is the damping factor, N is the total number of pages, the sum runs over every page B that links to A, and L(B) is the number of outgoing links on page B.

The first term is the share every page gets from random jumps. The second collects what linking pages pass along. A page with one outgoing link hands over its whole weight; a page with fifty hands each target a fiftieth.

A tiny worked example

Imagine three pages. A links to B and C. B links to C. C links to A.

Start by giving each an equal share, about 0.333. Apply the formula with d of 0.85 and N of 3, so each page gets a base of 0.05.

  • A receives from C only: 0.05 + 0.85 × 0.333 = 0.333.
  • B receives half of A: 0.05 + 0.85 × (0.333 / 2) = 0.192.
  • C receives half of A plus all of B: 0.05 + 0.85 × (0.167 + 0.333) = 0.475.

Run it again using these new values and the numbers shift, with A now benefiting from C's larger score. After enough rounds the changes become tiny. C ends up strong because it collects from two pages, and A is close behind because C sends it everything. B is weakest since it gets only half of A's vote.

Example: scores after one round for three linked pages
Page C (linked by A and B) 0.48 Page A (linked by C) 0.33 Page B (linked by A) 0.19 Page C (linked by A and B) 0.48 Page A (linked by C) 0.33 Page B (linked by A) 0.19

Hypothetical example: the numbers are made up to show the method, not a quote or an average.

Solving a circular problem

Page A's score depends on C, which depends on A. There is no obvious starting point, but repetition works. Begin with any reasonable guess, recompute every score and repeat. With a damping factor below 1, the values converge toward one stable answer regardless of the starting guess.

In mathematical terms, PageRank is an eigenvector of a very large matrix describing the links, and this repeated multiplication is called power iteration. On a web-sized graph, the work is spread over many machines.

How the scores are computed
Compare Check how much scores moved Add jumps Mix in the random-visit base Start equal Give every page the same share Pass weight Split each score across its links 1 2 3 4 Start equal Give every page the same share 1 Pass weight Split each score across its links 2 Add jumps Mix in the random-visit base 3 Compare Check how much scores moved 4

Dead ends and traps

Real link graphs are messy. A page with no outgoing links, called a dangling page, would soak up the random reader's attention and pass nothing on. A common fix treats the reader as jumping anywhere from such a page.

A group of pages linking only among themselves could also trap the reader and accumulate score forever. The random jump is what rescues the calculation, since it guarantees a way out of every cluster.

Once links had value, people manufactured them. Link farms are networks of sites that exist to link to each other. Others bought links, left them in blog comments or traded them in bulk.

Engines answered in several ways. In 2005, major engines introduced support for rel="nofollow", which tells them not to pass endorsement through a link. In 2019, Google added rel="sponsored" for paid links and rel="ugc" for user-generated content, and said these attributes are treated as hints.

<a href="https://example.com/" rel="sponsored">Our sponsor</a>

Systems also try to detect unnatural patterns and ignore or penalize them. For site owners, buying or scheming for links risks losing visibility. Link building without schemes covers legitimate approaches.

PageRank wasn't the only link analysis method of its era. Jon Kleinberg's HITS algorithm distinguishes authorities, pages with good information, from hubs, pages that point to many good authorities, with each reinforcing the other.

Variants of PageRank bias the random jumps toward a trusted set of sites or toward a particular topic. The same mathematics has since been applied well beyond the web, including to citation networks, road networks and social graphs.

A link carries more than a pointer. Its visible words, called anchor text, often describe the destination better than the destination describes itself. If many pages link to a site with the words "subnet calculator", an engine has good evidence about what that page does, even if the page barely uses the phrase.

Anchor text helps with things that contain little text of their own, such as images, downloads and tool pages. It was also abused. Groups once coordinated links using an unrelated phrase to make a chosen page rank for it, a prank known as Google bombing.

Where a link sits may matter as well. A link woven into the main body of an article plausibly reflects a deliberate recommendation. One repeated in the footer of every page on a site reflects a template. The original random surfer treated all links on a page alike, but later descriptions of link analysis suggest that some links are more likely to be followed, and so deserve more weight, than others.

The practical lesson for writers is plain. Link words that tell readers what they'll get. "See the router setup checklist" serves people and software better than "click here".

Try the idea on your own site

You can apply link thinking without computing anything precise. Say you run a small site with a homepage, a few category pages and a pile of articles.

  1. List your most important pages.
  2. For each, count how many of your other pages link to it from their body text.
  3. Find pages with no internal links at all, often called orphans.
  4. Add links where a reader would actually want them.
  5. Remove or redirect links that lead to dead pages.

If an important page has one link and a trivial page has hundreds, your structure is sending a muddled message. Fixing it costs nothing but attention, and visitors benefit whether or not any ranking changes.

What PageRank means today

Google once displayed a public toolbar score from 0 to 10 that approximated PageRank. It stopped updating it and later removed it. Scores offered by third-party tools under names like "authority" are those vendors' own estimates and aren't what any engine uses.

Links remain one signal among many, alongside content relevance, quality, usability and context, as described in how ranking signals decide what you see. Internal links matter too: they help crawlers discover pages and indicate which ones your site considers central. See internal linking that helps readers and crawlers.

The limits of voting

Calling links votes is a useful shorthand with real caveats. A link can express criticism, as when a writer links to a claim to debunk it. Popular pages attract more links partly because they're already visible, which makes it harder for newcomers to catch up. And importance is not accuracy.

When you judge a page yourself, borrow the better half of the idea. Ask who points to it and why. Searching for what independent sources say about a site often reveals more than anything the site says about itself.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Search & Research →

Latest news on this topic