The time complexity of selection sort is O(n²) for worst, average, and best-case scenarios.