The straight-line air distance between Bakersfield, California and San Diego, California is approximately 165 miles (266 kilometers).