An optical device includes a light-emitting element; an electronic circuit chip; a substrate on which the light-emitting element and the electronic circuit chip are mounted; a first electrode formed on a first mounting surface of the light-emitting element on the substrate; and a second electrode formed on a second mounting surface of the electronic circuit chip on the substrate. The first electrode and the second electrode have the same structure.