Myxofibrosarcoma (MFS) and undifferentiated pleomorphic sarcoma (UPS) are two common and aggressive subtypes of soft tissue sarcoma. The aim of this study was to assess potential transcriptomic differences between MFS and UPS tumours and to evaluate the extent to which differences in gene expression profiles were associated with genomic and clinical features. The study included 162 patients with tumours diagnosed as MFS (N = 62) or UPS (N = 100). The patients had been diagnosed and treated at two Swedish sarcoma centres during a 30-year period. For gene expression profiling and gene fusion detection all tumours were analysed using RNA-sequencing and could be compared with data on clinical outcome (N = 155), global copy number profiles (N = 145), and gene mutations (N = 128). Gene expression profiling revealed three transcriptomic clusters (TCs) without any clear separation of MFS and UPS. One TC was associated with longer metastasis-free survival. These tumours had lower tumour mutation burden (TMB), were enriched for a copy number signature representative of focal LOH and chromosomal instability on a diploid background, and were relatively immune-depleted. MFS and UPS showed extensive genomic overlap, with whole genome doubling occurring more frequently among the latter. The results support the idea that MFS and UPS tumours have largely overlapping genomic and transcriptomic features, with UPS tumours showing more aggressive behaviour and more complex genomes. Independently of the tumour type, clinically relevant subgroups were revealed by gene expression analysis, and the finding of multiple genomic subgroups strongly suggest the existence of subgroups of relevance to treatment stratification. © 2024 The Author(s). The Journal of Pathology published by John Wiley & Sons Ltd on behalf of The Pathological Society of Great Britain and Ireland.