U.S. companies stand to bring back $250 billion in foreign profits should Republicans manage to pass tax legislation, according to an analysis from Goldman Sachs (GS) - Get Goldman Sachs Group, Inc. (GS) Report , and tech companies would lead the way.

The New York-based investment bank in a research note late Monday laid out the math on a repatriation tax break likely to be included in a tax bill put forth by the GOP. Analysts estimate S&P 500 companies would bring back about a quarter of their total untaxed overseas cash by the end of 2018, basing their analysis on a Bush-era repatriation holiday, when U.S. firms repatriated 25% of their total estimated overseas earnings, and current corporate investment trends.

S&P 500 companies have about $2.5 trillion in permanently reinvested overseas earnings currently, including about $920 billion of untaxed cash overseas. Goldman estimates a repatriation tax reduction like that proposed by House Republicans -- an 8.75% tax on cash and 3.5% tax on earnings -- would result in $250 billion gradually coming back to the United States next year, while $540 billion would remain at foreign subsidiaries.

While firms that benefited from the 2004 holiday enacted under President George W. Bush largely spent their money on stock buybacks, Goldman analysts Arjun Menon, David Kostin, Ben Snider, Ryan Hammond and Cole Hunter argue that this time would be different. Equity prices are high, and recent cash spending patterns of companies with money stashed abroad suggest they would be less likely to favor buybacks over other potential uses.

"We expect firms would allocate repatriated cash evenly between returning cash to shareholders (buybacks and dividends) and investing for growth (capex, R&D, and cash M&A)," the analysts wrote.

Perhaps unsurprisingly, the biggest beneficiaries of a repatriation tax would be tech companies -- 11 of the 20 S&P stocks with the highest overseas cash as a percent of market cap are in the IT sector. In fact, tech accounts for 70% of total S&P 500 taxable cash stashed abroad, including nearly a quarter from Apple Inc. (AAPL) - Get Apple Inc. (AAPL) Report alone.

Beyond Apple, Goldman also identifies Cisco Systems Inc. (CSCO) - Get Cisco Systems, Inc. Report , NetApp Inc. (NTAP) - Get NetApp, Inc. (NTAP) Report , QUALCOMM Inc. (QCOM) - Get QUALCOMM Incorporated Report , Oracle Corp. (ORCL) - Get Oracle Corporation Report , Microsoft Corp. (MSFT) - Get Microsoft Corporation (MSFT) Report , TE Connectivity (TEL) - Get TE Connectivity Ltd. Report , Western Digital (WDC) - Get Western Digital Corporation Report , Citrix Systems Inc. (CTXS) - Get Citrix Systems, Inc. Report , Juniper Networks (JNPR) - Get Juniper Networks, Inc. (JNPR) Report and VeriSign Inc. (VRSN) - Get VeriSign, Inc. Report as tech companies that stand to benefit most from a reduced repatriation tax.

TheStreet Recommends

Non-tech companies that would reap the most benefits are Amgen Inc. (AMGN) - Get Amgen Inc. Report , Ralph Lauren Corp. (RL) - Get Ralph Lauren Corporation Class A Report , Waters Corp. (WAT) - Get Waters Corporation Report , Foot Locker Inc. (FL) - Get Foot Locker, Inc. Report , General Electric (GE) - Get General Electric Company (GE) Report , Abbott Laboratories (ABT) - Get Abbott Laboratories Report , Priceline Group (PCLN) , Johnson & Johnson (JNJ) - Get Johnson & Johnson (JNJ) Report and Merck & Co. Inc. (MRK) - Get Merck & Co., Inc. (MRK) Report .

Tech and healthcare combined account for 85% of total S&P 500 untaxed cash overseas. Energy and financials comprise only 2%, and real estate and telecom have almost no taxable cash abroad.

The so-called "Big Six," a group of Republicans hammering out the details of tax legislation, are expected to release more details on their tax plan on Wednesday.

Possible provisions in the new blueprint could include a 20% corporate tax rate, temporary full and immediate expensing, a reduction of the pass-through rate to 25%, a doubling of the standard deduction and the elimination of state and local deductions. However, it is only a starting point, and complete legislation is still a long way from being written.

Moreover, the budget resolution instructions being considered reportedly include cuts of $1.5 trillion over a 10-year period. And as The Tax Foundation's Kyle Pomerleau pointed out over the weekend, Republicans appear to be trying to fit $5 trillion of tax cuts in.

"This is still just a blueprint and, as its framers admit, it's just the beginning of the process," analysts at Height Securities LLC wrote in a Tuesday note.

Apple, Abbott and General Electric are holdings in Jim Cramer'sAction Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells AAPL, ABT and GE? Learn more now.

Don't miss these top stories on TheStreet: