According to one embodiment, a biosensor includes a substrate and a sensor matrix that is present in a two-dimensional region on the substrate. The sensor matrix includes a plurality of basic blocks. Each of the basic blocks includes at least three types of sensor elements.