Results on the electromagnetic form factors of the nucleon using twisted mass fermion configurations are presented. These include a gauge field ensemble simulated with two degenerate light quarks yielding a pion mass of around 130 MeV, as well as two ensembles that include strange and charm quarks in the sea yielding pion masses of 210 MeV and 373 MeV. Details of the methods used and systematic errors are discussed, such as noise reduction techniques and the effect of excited states contamination.