Theta measures how much an option loses in value each day. It is one of the Greeks. If theta is 0.05, the option loses about 5 cents per day, all else equal.
Options have an expiration date. As that date gets closer, there is less time for the stock to move. Less time means less value. This is theta decay.
The decay is not linear. An option with 60 days left loses value slowly. An option with 7 days left loses value fast. Most of the decay happens in the final weeks.
Option sellers benefit from theta. If you sell a credit spread and the stock stays still, theta works in your favor. The option you sold loses value. You can buy it back cheaper or let it expire.
Option buyers fight theta. Every day that passes without a big move costs you money. You need the stock to move enough to overcome the decay.
At the money options have the highest theta. They have the most extrinsic value to lose. Deep in the money options have less theta because most of their value is intrinsic. Out of the money options have less theta because they are already cheap.
A rough rule: theta accelerates in the final 30 days. An option might lose 1 cent per day at 60 days out, then 5 cents per day at 15 days out, then 15 cents per day in the final week.
If you sell premium, give yourself time. Selling 45 days out lets theta work without the extreme decay of the final week. Many traders close at 21 days to avoid gamma risk.
If you buy options, shorter expirations mean faster decay. You need a quick move. Longer expirations cost more but decay slower.
Theta assumes nothing else changes. If the stock moves or implied volatility changes, the option price changes for other reasons. Theta is one piece. Delta, gamma, and vega matter too.