We applied compressed sensing (CS) to spectral domain optical coherence tomography (SD-OCT). Namely, CS was applied to the spectral data in reconstructing A-mode images. This would eliminate the need for a large amount of spectral data for image reconstruction and processing. We tested the CS method by randomly undersampling k-space SD-OCT signal. OCT images are reconstructed by solving an optimization problem that minimizes the l1 norm to enforce sparsity, subject to data consistency constraints. Variable density random sampling and uniform density random sampling were studied and compared, which shows the former undersampling scheme can achieve accurate signal recovery using less data.© (2011) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.