Show HN: Every site gives a different P/E ratio, so I open-sourced the math
Transparent and Efficient Financial Analysis. Contribute to JerBouma/FinanceToolkit development by creating an account on GitHub.
Opening excerpt (first ~120 words) tap to expand
While browsing a variety of websites, I repeatedly observed significant fluctuations in the same financial metric among different sources. Similarly, the reported financial statements often didn't line up, and there was limited information on the methodology used to calculate each metric. For example, Microsoft's Price-to-Earnings (PE) ratio on the 6th of May, 2023 is reported to be 28.93 (Stockopedia), 32.05 (Morningstar), 32.66 (Macrotrends), 33.09 (Finance Charts), 33.66 (Y Charts), 33.67 (Wall Street Journal), 33.80 (Yahoo Finance) and 34.4 (Companies Market Cap). All of these calculations are correct, however the method of calculation varies leading to different results.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.