Methods and compositions for the production of oil, fuels, oleochemicals, and other compounds in recombinant microorganisms are provided, including oil-bearing microorganisms and methods of low cost cultivation of such microorganisms. Microalgal cells containing exogenous genes encoding, for example, a lipase, a sucrose transporter, a sucrose invertase, a fructokinase, a polysaccharide-degrading enzyme, a keto acyl-ACP synthase enzyme, a fatty acyl-ACP thioesterase, a fatty acyl-CoA/aldehyde reductase, a fatty acyl-CoA reductase, a fatty aldehyde reductase, a fatty aldehyde decarbonylase, and/or an acyl carrier protein are useful in manufacturing transportation fuels such as renewable diesel, biodiesel, and renewable jet fuel, as well as oleochemicals such as functional fluids, surfactants, soaps and lubricants.