Neutrons and protons are classified as hadrons, subatomic particles that are subject to the strong force and as baryons since they are composed of three quarks. The neutron is a composite particle made of two down quarks with charge −⅓ e and one up quark with charge +⅔ e. Since the neutron has no net electric charge, it is not affected by eletric forces, but the neutron does have a slight distribution of electric charge within it. This results in non-zero magnetic moment (dipole moment) of the neutron. Therefore the neutron interacts also via electromagnetic interaction, but much weaker than the proton.
The mass of the neutron is 939.565 MeV/c2, whereas the mass of the three quarks is only about 12 MeV/c2 (only about 1% of the mass-energy of the neutron). Like the proton, most of mass (energy) of the neutron is in the form of the strong nuclear force energy (gluons). The quarks of the neutron are held together by gluons, the exchange particles for the strong nuclear force. Gluons carry the color charge of the strong nuclear force.