What it means
たことがある expresses that someone has experienced doing something at least once before. It attaches to the た-form of a verb and focuses on whether the experience has occurred, rather than on when it happened. The polite version uses ことがあります.
Usage note
たことがある describes past experience and is different from a simple past statement about one particular event. For a negative experience, use たことがない.
How to use it
京都へ行ったことがあります。
I have been to Kyoto.
京都へ行ったことがある。
I have been to Kyoto.
