The Israelites wandered for approximately 40 years in the wilderness.
Deut 1:3 In the fortieth year, on the first day of the eleventh month, Moses spoke to the people of Israel according to all that the LORD had given him in commandment to them,
Deut 8:2 And you shall remember the whole way that the LORD your God has led you these forty years in the wilderness, that he might humble you, testing you to know what was in your heart, whether you would keep his commandments or not.
Deut 29:5 I have led you forty years in the wilderness. Your clothes have not worn out on you, and your sandals have not worn off your feet.
I read somewhere that Israel didn’t actually “wander” for 40 years. They stayed at Kadesh-barnea for about 36 years. Please comment.