Advanced non-small-cell lung cancer (NSCLC) patients with EGFR T790M-positive tumours benefit from osimertinib, an epidermal growth factor receptor-tyrosine kinase inhibitor (EGFR-TKI). Here we show that the size of the EGFR T790M-positive clone impacts response to osimertinib. T790M subclonality, as assessed by a retrospective NGS analysis of 289 baseline plasma ctDNA samples from T790M-positive advanced NSCLC patients from the AURA3 phase III trial, is associated with shorter progression-free survival (PFS), both in the osimertinib and the chemotherapy-treated patients. Both baseline and longitudinal ctDNA profiling indicate that the T790M subclonal tumours are enriched for PIK3CA alterations, which we demonstrate to confer resistance to osimertinib in vitro that can be partially reversed by PI3K pathway inhibitors. Overall, our results elucidate the impact of tumour heterogeneity on response to osimertinib in advanced stage NSCLC patients and could help define appropriate combination therapies in these patients.