An optical device has a photonic IC having a modulator block and a photodetector block for transmitting and receiving optical signals via multiple channels, and a wiring board to transmit and receive electrical signals to and from the photonic IC, multiple electrical wirings formed on the wiring board being associated with the multiple channels, wherein the photonic IC has a first optical waveguide set extending from an output end of the modulator block to an output port of the photonic IC and a second optical waveguide set extending from an input port of the photonic IC to an input end of the photodetector block, the optical waveguides are arranged in the shortest paths for the respective channels in the first and the second optical waveguide sets, and the lengths of the electrical wirings are set so as to compensate for a difference in optical waveguide length among the channels.