Tested tool guide
Tested browser tools
Checked August 16, 2026
What P/E Ratio Analyzer does, with a checked example
This analyzer converts a stock's price and earnings figures into the ratios investors compare directly: trailing P/E (price over the last 12 months of EPS), forward P/E (price over projected EPS), the PEG ratio (P/E divided by expected earnings growth), and earnings yield (EPS as a percentage of price), plus a comparison against a chosen sector benchmark. The most common mix-up is entering a forward EPS estimate but reading the PEG or earnings yield as if it were built on trailing, reported earnings - which can make a stock look considerably cheaper or more expensive than its actual GAAP numbers support.
Worked example
A concrete input and expected output from the current implementation.
Input
Price: $150.00, Trailing EPS: $6.00, Forward EPS estimate: $7.50, Expected 5-yr EPS growth: 15%
->
Expected output
Trailing P/E: 25.0, Forward P/E: 20.0, PEG (trailing): 1.67, Earnings yield (trailing): 4.00%, Earnings yield (forward): 5.00%
Trailing P/E is 150/6, forward P/E is 150/7.5, PEG divides the trailing P/E of 25 by the growth rate expressed as a plain number (25/15 = 1.67), and each earnings yield is EPS divided by price, expressed as a percentage.