WillItFitCheck a full build

Does a CS-HG400-7 fit a RD-R7000-GS?

Works, with a caveat
Works

The Shimano RD-R7000-GS is rated to 34T and the Shimano CS-HG400-7 tops out at 28T.

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-HG400-7RD-R7000-GS
Speeds711
Largest cog28not given
Smallest cog11not given
Cage lengthnot givenGS
Clutchnot givenNo
Largest sprocket it can takenot given34
Smallest sprocketnot given11
What these words mean(4 terms)
T, as in 34T
T is teeth. A 34T sprocket has 34 teeth on it. The bigger that number, the easier the gear is to pedal up a hill, and the harder it is for the derailleur to reach.
cable pull
How far the derailleur moves for one click of the shifter. The two have to agree, or the chain stops halfway between gears instead of landing in one.
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.
actuation
The same idea as cable pull: how far the derailleur moves per click of the shifter.

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.