A robust molecular dynamics simulation method for calculating dislocation core energies has been developed. This method has unique advantages: it does not require artificial boundary conditions, is applicable for mixed dislocations, and can yield converged results regardless of the atomistic system size. Utilizing a high-fidelity bond order potential, we have applied this method in aluminium to calculate the dislocation core energy as a function of the angle β between the dislocation line and Burgers vector. These calculations show that, for the face-centred-cubic aluminium explored, the dislocation core energy follows the same functional dependence on β as the dislocation elastic energy: E c = A·sin 2 β + B·cos 2 β, and this dependence is independent of temperature between 100 and 300 K. By further analysing the energetics of an extended dislocation core, we elucidate the relationship between the core energy and core radius of a perfect versus an extended dislocation. With our methodology, the dislocation core energy can be accurately accounted for in models of dislocation-mediated plasticity.