The shortest distance is 162 miles.
Depending on which way that you travel, Yosemite is about 4 hours from Sacramento. This time of the year I suggest that you use the lowest elevation route through Mariposa using CA 140.
196 miles http://gocalifornia.about.com/cs/maps/l/bl_distance.htm
The one in Washington is 961 miles from Yosemite.
It is southeast of Sacramento.
Sacramento to Burlington is 2980 miles.
650 miles
765 miles
834 miles
about 200 miles
0 miles because it is in Sacramento
The closest major airport to Yosemite National Park is Mammoth Yosemite Airport (MMH / KMMH). This airport is in Mammoth Lakes, California and is about 68 miles by car from the park. Another option would be Fresno Yosemite International Airport - Fresno, CA (FAT / KFAT), at about 123 miles by car from the park.