Manny Machado believes he'll have elbow surgery this offseason.

Machado said he is "going in the direction of having surgery pretty soon," and that could even mean before this season's final game, depending on how the San Diego Padres' last-minute try for a wild-card playoff spot in the National League goes down the stretch.

He has endured elbow problems before, and the issue this season has gained in intensity down the stretch.

"We were trying to avoid it as much as we can," Machado said of the surgery. "But unfortunately, [the injury] has just put us in that situation, and you know what, it's probably going to make me better, going to make us all better. Just get it done, get ready for next year, come back and be healthy."