This question isn’t a good rule of thumb because it depends on several factors. The most significant factor is your cabinets’ construction and material type. In some cases, the wood may be under warranty for 50 years. The cheaper the structure of the cabinets is, the more frequently they need replacing. Some estimates say about every ten years; they ought to be replaced. It always depends on what your goals are, though.
The existing cabinets may ideally suit your wants, or you may do a remodel to sell the house and replace them to fit the new look. You want to be on the lookout for signs of visible wear or damage, water or mold damage, and material softening. Replacing them sooner rather than later is best if any of these occur. The other factor to consider here is whether they look outdated and must be replaced, repainted, or resurfaced. Any of these options may be the right one for your budget and desired look.