Big O Calculator (Time Complexity)
See how an algorithm's running time grows: the number of steps for O(1), O(log n), O(n), O(n log n), O(n²), O(2ⁿ) or O(n!) at your…
See how an algorithm's running time grows: the number of steps for O(1), O(log n), O(n), O(n log n), O(n²), O(2ⁿ) or O(n!) at your input size, and how long it would take.
Results
About This Calculator
Big O ignores constant factors and keeps the fastest-growing term: 3n² + 5n + 2 is O(n²). Pick the class that matches your algorithm (nested loops over n → O(n²); halving each step → O(log n)).
Example
Example: an O(n log n) sort of 1,000,000 items takes about 19931600 steps — 19.93 ms at 10⁹ steps/s.
Assumptions
One unit of work per step; real constants vary.
Frequently Asked Questions
Why does Big O matter?
Because growth rate dominates: for large n an O(n log n) algorithm beats an O(n²) one regardless of hardware.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile