Yeah, it really depends on a lot of factors, so it's not like there's one supreme answer.
Where I live now, which is a rural area, there's basically nothing within a viable walking distance aside from neighbors. Even then, there are no walkways or sidewalks between houses/properties, so I would be taking my life into my own hands (for those not familiar, that's an idiom) to walk along the roadway to another house. And yes, we've literally had people get hit by vehicles and die out here while walking on/along the roads.
When I lived in suburban and urban areas, my tolerance for walking places was much higher as longer, weather permitting. When I lived off campus during my college years, for example, I didn't mind walking 45 - 60 minutes to get to campus. And if I was having car trouble, it wasn't uncommon for me to walk that much or more to get to a grocery store or the mechanic's shop.