In summary, though it's difficult to measure just how far a black bear can smell, a range of a few miles isn't unrealistic. With 300 to 500 bears roaming Yosemite at any given time, it's more than likely that at least one of them are smelling you at all times.