"If we were to win the Champions League this season, it's quite possible I'll retire on the spot," Kahn, 37, told German television.
"I want to try to quit at the top, I want to have the feeling of being at the peak. I definitely don't want to hang on to the point where people are saying: 'Send that old guy home'."
Kahn says he does not know what he will do after quitting.
"I really don't know" said the keeper, who retired from international competition in July after helping Germany beat Portugal with a strong performance in the match for third place at the World Cup finals.
Kahn joined Bayern in 1994 and has since won the Champions League and seven league titles as well as two Germany Player of the Year awards. He also won the FIFA Golden Ball award for most outstanding player at the 2002 World Cup finals.
Bayern have been drawn to play Real Madrid in the first knockout round of the Champions League in February.
More from rediff