Merced, California, is approximately 81 miles (130 km) from Yosemite Valley via CA-140. The drive typically takes 2 hours 15 minutes, winding through the Sierra Nevada foothills into the park's iconic glacier-carved valley.