At present, a large number of exciting results have been found regarding energy metabolism within the triple-negative breast cancer (TNBC) field. Apart from aerobic glycolysis, a number of other catabolic pathways have also been demonstrated to participate in energy generation. However, the prognostic value of energy metabolism for TNBC currently remains unclear. In the present study, the association between gene expression profiles of energy metabolism and outcomes in patients with TNBC was examined using datasets obtained from the Gene Expression Omnibus and The Cancer Genome Atlas. In total, four robust TNBC subtypes were identified on the basis of negative matrix factorization clustering and gene expression patterns, which exhibited distinct immunological, molecular and prognostic (disease-free survival) features. The differentially expressed genes were subsequently identified from the subgroup that demonstrated the poorest prognosis compared with the remaining 3 subgroups, where their biological functions were assessed further by means of gene ontology enrichment analysis. Any signatures found to be associated with energy metabolism were then established using the Cox proportional hazards model to assess patient prognosis. According to results of Kaplan-Meier analysis, the constructed signature consisting of eight genes that were associated with energy metabolism distinguished patient outcomes into low-and high-risk groups. In addition, this signature, which was found to be markedly associated with the clinical characteristics of the patients, served as an independent factor in predicting TNBC patient prognosis. According to gene set enrichment analysis, the gene sets related to the high-risk group participated in the MAPK signal transduction pathway, focal adhesion and extracellular matrix receptor interaction, whilst those related to the low-risk group were revealed to be mainly associated with mismatch repair and propanoate metabolism. Findings from the present study shed new light on the role of energy metabolism within TNBC, where the eight-gene signature associated with energy metabolism constructed can be utilized as a new prognostic marker for predicting survival in patients with TNBC.