The miniaturization of optical sensors is essential for the realization of compact, portable, and cost-effective devices. Photonic crystal-based optical sensors, which have an ultrasmall mode volume and footprint, have demonstrated remarkable recent progress in achieving a high figure-of-merit (FOM) in a sensor. Here, we report an optical sensor with a high Q-factor and high sensitivity based on a photonic crystal nanobeam using the second lowest air band-edge mode. We calculated that a nanobeam (n = 3.4) in a water environment (n = 1.33) has refractive-index sensitivity of similar to 631 nm/RIU, while the quality factor is greater than 23,300. Accordingly, a theoretical FOM of the sensor corresponds to >9500. To the best of our knowledge, experimental refractive-index sensitivity of 461 nm/RIU is the highest value among photonic crystal single nanobeam geometry. The simple geometry of uniform air hole sizes and lattice constants in the proposed nanobeam sensor allows easy fabrication and mechanical stability.