Time Complexity Calculator

Estimate Big O time and space from your code

Runs on this device

Quick patterns

What the estimate covers

  • Big O describes how time or memory grows with input size n, ignoring constants.
  • The analyzer reads JavaScript-style code, Python and simple pseudocode.
  • Paste a single algorithm of up to 20,000 characters.

Limits

  • No program can determine complexity for all code, so treat every result as an estimate.
  • Loops or recursion that are not recognised show as Unknown.
  • Recursive code uses stack space in proportion to its depth.