A scatterometer configured to measure a property of a substrate, includes a radiation source configured to provide a radiation beam; and a detector configured to detect a spectrum of the radiation beam reflected from a target (30) on the surface of the substrate (W) and to produce a measurement signal representative of the spectrum. The apparatus includes a beam shaper (51, 53) interposed in the radiation path between the radiation source and the detector, the beam shaper being configured to adjust the cross section of the beam dependent on the shape and/or size of the target.