Protons and Neutrons are made out of quarks , of two types ; up quarks and down quarks . There are six types of quarks , each having a fractional electric charge of either + or â ' . Protons are composed of two up quarks and one down quark , while a neutron consists of one up quark and two down quarks .