WillItFitCheck a full build

Does a CS-HG500-10 fit a ST-R7170?

Won't work
Won't work

The Shimano ST-R7170 is 12-speed and the Shimano CS-HG500-10 is 10-speed. The shifter indexes to a fixed number of positions, so the extra cogs are unreachable.

Shimano Road Compatibility Chart

Every claim above names the document it came from. Manufacturers change specifications without notice, and some combinations depend on your frame or your setup. If this build matters, confirm it with your bike shop. If we have it wrong, tell us and we will fix it and say that we did.

The numbers

SpecificationCS-HG500-10ST-R7170
Speeds1012
Largest cog34not given
Smallest cog11not given
What these words mean(5 terms)
speed, as in 11-speed
How many gears are on the back wheel. An 11-speed cassette has 11 rings of teeth, and needs a shifter that clicks 11 times.
shifter
The lever on the handlebar you click to change gear. It pulls a cable that moves the derailleur.
indexes
The shifter clicks into fixed positions, one per gear. It cannot stop between them, which is why the number of gears has to match.
cog
Another word for one ring of teeth on the back wheel. Same thing as a sprocket.
freehub
The grooved barrel on the back wheel that the cassette slides onto. The grooves come in a few incompatible patterns, and a cassette only fits the one it was cut for. The standards, and which fits what.

What this answer does not cover

Two parts are not a whole drivetrain. Before answering for the rest of it we would need to know:

Check your full build to include them.

The two parts

Ridden this combination? Tell us how it went. Rider reports are how we cover the parts no manufacturer publishes a chart for.