We improved the performance of a functional near-infrared spectroscopy (fNIRS)-based brain–computer interface based on relatively short task duration and multiclass classification. A custom-built eight-channel fNIRS system was used over the motor cortex areas in both hemispheres to measure the hemodynamic responses evoked by four different motor tasks (overt execution of arm lifting and knee extension for both sides) instead of finger tapping. The hemodynamic responses were classified using the naive Bayes classifier. Among the mean, max, slope, variance, and median of the signal amplitude and the time lag of the signal, several signal features are chosen to obtain highest classification accuracy. Ten runs of threefold cross-validation were conducted, which yielded classification accuracies of to , to , and to for the binary, ternary, and quaternary classifications, respectively. Eight seconds of task duration for obtaining sufficient quaternary classification accuracy was suggested. The bit transfer rate per minute (BPM) based on the quaternary classification accuracy was investigated. A BPM can be achieved from 2.81 to .