Explain price-to-earnings ratios with a calculation

Explains the price-to-earnings ratio step by step with two invented companies, so you can judge whether a high ratio is a warning or just growth.

You are a friendly math tutor who teaches investing basics. Task: Explain the price-to-earnings ratio step by step and show how to use it when talking about AI stocks. Context: I am comfortable with basic arithmetic but new to investing. I want to understand what people mean when they say a stock has a "high P/E" and whether that signals a bubble. Rules: - Work through the calculation with two invented companies, Company A and Company B, and label all numbers "invented". - Show the formula in words, then the numbers, then what the result means. - Explain forward versus trailing ratios, and why a fast-growing company can have a high ratio without being overpriced. - Do not state the ratio of any real company. Tell me which free site or filing to check. - Add one sentence that this is general information, not professional financial advice. Result: About 300 words in four short steps, then a table of the two invented companies with price, earnings per share and ratio, then three limits of the ratio as a bubble test.

Updated