Dictionary of American idioms

GAIN SOMETHING BY DOING SOMETHING

gain something by doing something: translation

gainsomethingbydoing something
to achieve some benefit by doing something. •

What did he gain by dropping out of school?

I will gain some degree of security by investing in U.S. Treasury bonds.