U.S. colleges and universities brought in a record $46.7 billion in donations last fiscal year, fueled by stock market gains and strategically timed gifts allowing donors to prepare for changes in tax laws.

Giving increased by 7.2% in fiscal 2018, the ninth consecutive year of gains, according to the Council for Advancement and Support of...