A scanning optical apparatus includes a light source capable of being modulated,
a deflecting element for deflecting and scanning a beam emitted from the light
source, a scanning optical element for imaging the deflected beam into a spot shape
on a scanned surface, and an optical element for synchronous detection for directing
the deflected beam from the deflecting element to a sensor to take the timing of
image writing beginning. The scanning optical apparatus further inclueds a scanning
position detecting device for making the optical axis of the optical element for
synchronous detection and the principal ray of the beam from the deflecting element
for taking the timing of image writing beginning coincident with each other, and
detecting the position of the beam at a point having at least one image height
separate from the optical axis of the scanning optical element.