The effects of four initial culture pH values (3, 4, 5, and 6) and nitrogen limitation on growth, TAG accumulation, lipid production, fatty acid profile, and estimated biodiesel quality of Starmerella magnoliae X3 were investigated. TAG and lipid levels were measured by Nile Red fluorescence and sulfo-phospho-vanilin (SPV) techniques, respectively. The results showed that a combination of nitrogen limitation and acidic pH significantly (p < 0.05) increased TAG accumulation, total lipid contents, and lipid productivity in Starmerella magnoliae X3 compared to the control group. Under nitrogen limitation, the highest TAG accumulation was achieved at initial pHs of 3 and 5 after 72h of cultivation, and the highest lipid productivity (0.306g L-1 d-1) was observed after 48h at pH 3; the major fatty acids at the four pH values were oleic acid (63.6%-64%), palmitoleic acid (11.3%-12.5%), stearic acid (9.7%-11.4%), and palmitic acid (9.4%-10%). In addition, both stresses were associated with lower iodine value and higher cetane number of the biodiesel compared to the control. These findings suggest that cultivation in a low-nitrogen medium at an initial pH of 3 or 5 holds promise in increasing TAG production in Starmerella magnoliae X3.