It is 1,261 miles according to Google Maps.
The deepest part of Carlsbad Caverns descends about 750 feet (229 meters) below the surface. It is part of a complex cave system with more than 30 miles (48 kilometers) of known underground passageways.
Carlsbad Caverns is approximately 80 miles southwest of Roswell, New Mexico. The drive typically takes about 1.5 to 2 hours, depending on traffic and road conditions. The route primarily follows US-285 S and then NM-7 W.
It is 101 miles according to Google Maps.
I don't know if I'm missing something specific to the tourist attraction or you are one of those who believe an apparently common myth that caves hold "treasure". They don't, not in the sense of precious metals and gems anyway; but you could regard Carlsbad Caverns as being its own "treasure" _ a superb cave in (as far as I understand it) magnificent countryside.
The driving distance from Wichita, Kansas to Carlsbad Caverns National Park in New Mexico is 712 miles via US-82 W per MapQuest. The driving time per MapQuest is 11 hours and 2 minutes.
The driving distance from Carlsbad Caverns National Park in New Mexico to Santa Fe, New Mexico is 297 miles per MapQuest. The driving time per MapQuest is 5 hours.
The border's about 175 miles from Carlsbad.
"Carlsbad Caverns" IS the cave. Its largest chamber, as far as I can make out (the Internet's not all it's cracked up to be for finding information!), is known as The Big Room. Note: The word "chamber". I'd used that as a British caver, but I believe US cavers usually use "room" for the same thing: a discrete cavity within a cave, and distinctly larger than the passages entering it.
86 miles.
About 270 miles.
It is 269.81 miles according to MapQuest.