Why Is My Hot Water Running Out So Fast?
If hot water suddenly runs out faster than it used to, start by asking whether household demand changed or the water-heating system changed.
By Everyday Home Advice Editorial Team

If hot water suddenly runs out faster than it used to, start by asking whether household demand changed or the water-heating system changed.
Did usage increase?
Back-to-back showers, laundry, and dishwashing can use a significant amount of hot water.
Is this a new problem?
A system that used to meet the same household demand but no longer does deserves more investigation.
Water-heater performance
The cause depends partly on the type of water heater. A conventional storage water heater and a tankless system behave differently.
Temperature matters
Don't raise water-heater temperature aggressively just to increase apparent hot-water capacity. Excessively hot water can create a scalding risk.
Look for other symptoms
Also note strange water-heater noises, leaks, temperature fluctuations, and water that never gets fully hot. These clues can help narrow the problem.
When should I get help?
Consider professional evaluation when hot-water capacity has clearly declined without a change in household demand. Find Local Plumbing Help