Introduction Mitochondrial dysfunction and ferroptosis have been implicated in the pathophysiological processes following spinal cord injury (SCI), with evidence suggesting their interplay influences neuronal cell survival and repair mechanisms. This study seeks to identify mitochondria- and ferroptosis-related biomarkers through comprehensive bioinformatics analysis.Methods Mitochondria- and ferroptosis-associated differentially expressed genes (DEGs) were identified through the integration of differential expression analysis and weighted gene co-expression network analysis. Two machine learning algorithms, least absolute shrinkage and selection operator (LASSO) and Boruta, were employed to isolate SCI-associated feature genes. Biomarkers were subsequently identified by analyzing their expression levels. An artificial neural network (ANN) diagnostic model was constructed to predict SCI likelihood based on these biomarkers. Further evaluations were performed using enrichment analysis, immune infiltration profiling, molecular modulation assessment, and drug prediction. The biomarkers' expression levels were validated using RT-qPCR.Results In this study, two biomarkers, Hcrt and Cdca2, linked to mitochondrial function and ferroptosis in SCI, were found to be highly expressed in SCI samples. Tissue-specific analysis from the GTEx database revealed expression of these biomarkers in brain and spinal cord tissues. The ANN model, constructed using these biomarkers, accurately discriminated between SCI and control samples. Enrichment analysis highlighted several co-enriched pathways for Hcrt and Cdca2, including "ubiquitin-mediated proteolysis," "endocytosis," and the "neurotrophin signaling pathway." Immune infiltration analysis, based on the Wilcoxon test, demonstrated significant differences in T follicular helper cell levels, which were lower in SCI samples compared to controls. Notably, T follicular helper cells exhibited a positive correlation with Hcrt and a negative correlation with Cdca2. Furthermore, seven transcription factors, including CEBPB, FOXC1, and GATA2, were identified as potential co-regulators of Hcrt and Cdca2. Drug prediction analysis revealed stable interactions of Cdca2 with pinosylvin, zinc acetate dihydrate, hydroquinone, lucanthone, and dasatinib. RT-qPCR validation confirmed the expression patterns of Hcrt and Cdca2 in alignment with the dataset, showing statistically significant differences.Discussion This study identifies Hcrt and Cdca2 as biomarkers related to mitochondrial function and ferroptosis in SCI, providing new insights for the diagnosis and mechanistic understanding of SCI.