In this work we study the influence of a strong magnetic field on the composition of nuclear matter at T=0 including the anomalous magnetic moment (AMM) of baryons.