President Donald Trump wants you to think that the stock market is hitting record highs because he's in office.

In a recent tweet, he even went as far as to characterize the postelection stock rally as "virtually unprecedented," and he criticized what he called the "Fake News Media" for not reporting on it.

Business Insider took that to heart and dissected Trump's claims that he had catalyzed stock market records. The final conclusion was that while he drove some periods of gains, there were many other times when the market climbed higher for other reasons.

Now we're here to test the mettle of Trump's argument that the stock market has rarely surged this much following an election.

As it turns out, you only have to go back to — (drum roll) — the period after the 2012 election to find a comparable period of stock market strength. That's right, the S&P 500 climbed 19.2% between Barack Obama's reelection and October 11, 2013 — almost exactly the same as the move we've seen since Trump took office.

The stock market's returns since Trump's election victory aren't exactly "unprecedented." Business Insider/Andy Kiersz, data from Bloomberg

But surely that's the only other instance of such a rally, right? Nope. As you can see in the chart above, the S&P 500 has rallied by more than 19% on four out of 14 occasions dating back to the election of John F. Kennedy in 1960. And three of those times, the index spiked more than 23%.

So while the definition of "unprecedented" is certainly subjective, it can be safely concluded that both similar and superior rallies have followed presidential elections.

With all of that said, the question that must be asked is: How much are postelection returns dictated by whether stocks are already in a bull market? After all, there was already a 7-1/2-year-long bull period when Trump won the 2016 election.

As you'll see in the chart above, other major postelection rallies corresponded to bull-market stretches, most notably the 35% spike enjoyed by Bill Clinton to start his second term. That was in 1996 and 1997, when the stock market was firmly locked into its longest bull market on record.

Between this analysis and our findings from Wednesday, maybe it's time to conclude that presidents don't really have a huge hand in determining stock gains after all.

(Bob Bryan contributed reporting. Check out his coverage of Trump's policies here.)