The 10W-40 oil which is a high viscosity oil can be useful for older engines burning or leaking oil.
10W-40 high viscosity motor oils for use in vehicles with more than 75,000 miles, and a synthetic blend oil when cost is a consideration.
The difference between 10W-30 and a 10W-40 is the high temperature viscosity.
Obviously, a 10W-40 is thicker than a 10W-30 at high temperature.
You won't likely see 10W-40 as an oil recommendation on a modern-day passenger car.
However, it still retains popularity with medium and heavy-duty gasoline engines in light trucks.
This oil weight is commonly used in diesel engines or in a smaller motorcycle engine too.
It's best to use the oil viscosity recommended in the owner's manual, but using a slightly thinner or thicker oil (lighter or heavier viscosity) generally poses no long-term harm.