You can often wear hiking shoes to a gym in the narrow sense that many facilities do not ban them outright, but they are a bad choice for most indoor training—especially running, court sports, and anything requiring lateral stability—so the practical answer is "permitted at many gyms, but not recommended except for limited uses." The question bundles two different issues: what a gym's rules allow, and what footwear actually suits the activity. The first depends on the specific facility, whose dress code is unknown here; the second can be answered from how hiking shoes are built.

What "hiking shoes" actually means

The term covers a wide range. At one end are lightweight "trail runners" and low-cut hiking shoes with flexible, fairly flat soles and breathable mesh uppers. At the other are stiff mid- or high-cut hiking boots with deep lugged rubber outsoles, shanks, and substantial ankle support. A low-cut trail shoe behaves somewhat like a stiff athletic shoe; a burly hiking boot behaves like a piece of outdoor equipment. Any answer that treats "hiking shoes" as one thing will mislead, so keep this spectrum in mind.

Why gyms might object

Most commercial gyms publish a dress code, and the common requirements are closed-toe shoes, clean soles, and non-marking soles. Hiking shoes usually satisfy closed-toe and often satisfy clean, since they are worn indoors only if you keep them for that purpose. The sticking point is the sole compound and tread pattern. Deep lugs and hard rubber can scuff or mark light-colored floors, and gyms that care about their flooring—martial arts studios, group-fitness rooms, some boutique studios—may ask for indoor-only or non-marking shoes. Free-weight areas are usually more permissive than group-exercise studios.

Because the actual gym's policy is not specified here, treat the general principle as: many gyms will not stop you, but a facility can and sometimes does require athletic shoes or indoor-only soles. Check the posted rules or ask the front desk if it matters to you. A gym that rents or requires indoor cycling shoes, for instance, is imposing a rule tied to its equipment, not a universal standard.

Where hiking shoes cause real problems

The core objection is biomechanical, not stylistic. Hiking shoes are engineered for uneven outdoor terrain: stiff midsoles, aggressive tread, and often a rock plate or shank to protect the foot from sharp stones. That stiffness is a liability on a flat, predictable gym floor.

Running and treadmill work. A stiff, lugged sole does not flex naturally at the ball of the foot, which changes your gait and can encourage a heel-heavy stride. Tread designed to bite into dirt has poor traction on smooth rubber or vinyl flooring, and a high, stiff collar can rub the ankle during repeated flexion. Lateral and court sports. Basketball, pickleball, and aerobics demand side-to-side stability. Hiking shoes are built for forward walking on uneven ground, not for cutting and pivoting; their taller stack and stiffer upper can raise the risk of rolling an ankle. Lifting. For heavy squats and deadlifts, many lifters prefer flat, firm, stable soles—which some rigid hiking shoes actually provide. But deep lugs create an unstable, rocking contact patch under load, and a soft or deeply treaded sole compresses unevenly. A dedicated flat-soled shoe or lifting shoe is the safer, more predictable choice. Floor damage and hygiene. Outdoor grit trapped in deep lugs gets tracked onto mats and studio floors. Gyms that emphasize cleanliness may restrict shoes worn outside.

Where they are defensible

There are legitimate, limited uses. If your gym session is mostly stationary cycling, rowing, or machine-based work, and the shoe is a low-cut trail model with a relatively flat, non-marking sole, it can function adequately. Some lifters deliberately use a stiff, flat hiking shoe for deadlifts because the firm sole and lack of cushioning mimic a minimalist platform shoe. Hiking shoes are also a reasonable stopgap if you are traveling and have only one pair. The key distinctions are sole stiffness, tread depth, and whether the gym requires non-marking indoor soles.

Ambiguity worth naming

The query does not say which gym, which type of hiking shoe, or which workout. Those three unknowns drive the answer more than anything else. A climbing gym, a CrossFit box, a big-box fitness center, and a yoga studio have different floor and footwear expectations. A trail runner and a mountaineering boot are not interchangeable. And "going to the gym" could mean a twenty-minute treadmill jog or an hour of barbell work. If any of those details mattered to you, the honest response is that the rule and the fit both depend on them; what is answerable is the general principle above.

A practical way to decide

If you want to wear them, match the shoe to the session and the facility. Low-cut, flexible, non-marking trail shoes are the closest thing to gym-appropriate among hiking footwear; reserve stiff, deeply lugged boots for outdoor use. Keep a dedicated pair of indoor athletic shoes if you train regularly, because the wear patterns differ: gym floors abrade soft rubber quickly, and outdoor grit degrades mats. And confirm the gym's posted policy rather than assuming—many facilities are lenient, but "many" is not "all," and a dress code is a local rule, not a universal one.