If you go to a private school, or a public school in a state you don't live in, you can easily double or triple those costs, but there are routes for bright students to study at excellent schools for pretty low cost.
For example, many top private schools have tuition+board costs upwards of $90k/yr, now— yet if you (or your parents) bring in less than $100k-$200k/yr (again, depends on the school), tuition is completely free, with a sliding scale on incomes based above that threshold. Stanford does not even publish their total cost for a degree any more so much as a matrix to provide a ballpark estimate.
State schools often provide massive discounts for their tax-paying residents to attend. In California, that could be the difference between $20k/yr versus $70k+/yr for UCLA or Berkeley. University of Texas just announced tuition will be free for all in-state families earning less than $100k/yr going forward.
Then of course, there’s the need-based and/or merit-based scholarships, which schools may give out to entice someone they particularly want to attend, or through blanket policies to incentivize their student body: e.g. University of Southern California (tuition with board around $90k/yr now) still gives out 50%-tuition scholarships based on an objective SAT score cutoff.
That’s not to say paying full sticker price for college never happens, but there’s many options before taking on hundreds of thousands of dollars of debt. I believe the average amount of total debt per student is something like $40k, or ~10k/yr.
EDIT: most of these discounts usually only apply to US citizens; international students are often paying full sticker price, and ineligible for government-backed student loans. Some schools use this policy to have international students subsidize their domestic students, to the point that the UC system got in trouble for prioritizing international students over US ones because it was better for the balance sheet.
That's very atypical. The average student loan size at graduation is around $33k to 41k. The only way you get "hundreds of thousands in debt" is if you go to an expensive private university and pay full price.
https://educationdata.org/average-student-loan-debt
>The average private nonprofit university student borrows $33,910 to complete a bachelor’s degree.
>For-profit students borrow an average $40,970.
Also, can you pay student loans with pre tax income?
I've worked with many talented engineers over the years who didn't have degrees and have had no trouble finding jobs and moving around. I imagine a degree might help you get a foot in the door, but once you can demonstrate you can do the job, seems to be easy to pick up more work.
I really wonder how damaging that debt would be for a young person who is also trying to save for a house and start a family.