The TNM stage is determined through various diagnostic tests such as physical examinations, imaging studies (like CT scans and MRIs), and biopsies. Each of the three components (T, N, and M) is assessed separately, and then combined to assign an overall stage, ranging from Stage 0 (in situ) to Stage IV (advanced cancer).