What a 1031 Exchange Can and Can't Do for Real Estate Investors
Sam's List Editorial | 2026-06-23
A 1031 exchange is one of the most powerful tools in the real estate investor's tax toolkit and one of the most easily fumbled.
It defers tax. It doesn't eliminate it. It works for investment property. It doesn't work for primary residences or property held for resale. The clocks are short and unforgiving, and the structure has to be in place before the closing wire goes out — not after.
This piece is a plain-English explainer of what a 1031 exchange actually does, where the boundaries are, and what it takes to execute one correctly.
What the exchange actually does
A §1031 like-kind exchange — codified in IRC §1031 — allows an investor to defer the capital gains tax (and depreciation recapture) on the sale of investment or business-use real property when the proceeds are reinvested into other like-kind property.
The word that matters is defer. The gain doesn't disappear. It rides along in a lower basis on the replacement property until a future taxable sale.
On a property bought for $400K and sold for $1.1M, the unrealized gain is $700K (ignoring depreciation for a moment). Without a 1031, that gain is taxable at long-term capital gains rates plus depreciation recapture at up to 25%. With a properly executed 1031, the tax is deferred and the basis of the replacement property is adjusted downward by the deferred gain.
If the investor eventually sells the replacement property in a taxable transaction, the deferred gain (plus any new gain) is recognized then. If the investor holds until death, the property generally receives a step-up in basis under IRC §1014 — which is the strategy commonly referred to as "swap till you drop."
What property qualifies (and what doesn't)
Under the Tax Cuts and Jobs Act's amendments to §1031 (effective 2018), like-kind exchanges are limited to real property held for productive use in a trade or business or for investment.
That means:
- Qualifies: Investment rental property, raw land held for appreciation, commercial property, multi-family, certain leasehold interests of 30+ years.
- Does not qualify: Primary residences, vacation homes used personally, property held primarily for sale to customers (flips, inventory), partnership interests (you can't exchange your share of an LLC; the LLC has to do the exchange itself), and personal property like equipment or vehicles (those were removed from §1031 by TCJA).
"Like-kind" is broader than most investors expect. Raw land can be exchanged for an apartment building. A single-family rental can be exchanged for commercial space. The kind in question is real property held for investment or business, not the specific use or category within real estate.
The two clocks that kill most failed exchanges
The §1031 timeline is the single most unforgiving piece of the rules:
- 45 days from the close of the relinquished property to identify replacement property in writing, delivered to the qualified intermediary or other party required under the regulations.
- 180 days from the close of the relinquished property to complete the acquisition of the replacement property.
Both are calendar days. Weekends and holidays count. The 45-day window in particular is shorter than most investors realize, especially in tight markets where finding the right replacement takes longer than identifying alternatives.
The identification rules allow several mechanical options — the three-property rule, the 200% rule, the 95% rule — each of which sets different boundaries on how many properties can be identified and what their combined value can be. The mechanics matter, but the deadline is what matters most.
Miss either clock and the exchange fails. The gain is recognized in the year of the original sale.
The qualified intermediary that has to be in place
The investor cannot touch the proceeds from the sale of the relinquished property. If the cash hits the investor's account at closing — even for a moment — the exchange is dead under the "constructive receipt" doctrine.
A qualified intermediary (QI), as defined in Treasury Regulation §1.1031(k)-1(g)(4), is an independent party who holds the proceeds between transactions. The QI receives the proceeds at closing, holds them in escrow, and disburses them to acquire the replacement property at the second closing.
The QI relationship has to be in writing and in place before the closing on the relinquished property. A QI engaged after the fact cannot retroactively rescue an exchange.
QIs are typically specialized firms — not the investor's attorney, accountant, or real estate agent (each of whom would be considered a "related party" or "agent" of the investor and disqualified from acting as QI under the regulations).
What the deferral actually buys
The cleanest way to think about a 1031 is that it gives the investor time. The same dollars that would have gone to federal capital gains tax (up to 20%) plus 3.8% net investment income tax plus state tax plus depreciation recapture (up to 25%) stay invested in real estate, compounding, until a future sale.
On a $700K gain with $200K of accumulated depreciation, the deferred tax bill might run $200K–$280K depending on bracket and state. Keeping that $200K+ working in a replacement property for the next decade, instead of writing it to the IRS in the year of sale, is the structural benefit.
For investors who execute multiple 1031 exchanges over a career and hold to death, the deferred gain is never taxed at all — the step-up in basis under §1014 wipes it out.
Where the strategy stops working
Three places where a 1031 either doesn't apply or doesn't help:
- Boot. Any non-like-kind property or cash received (called "boot") is taxable in the year of the exchange. An investor selling a $1.1M property and acquiring a $900K replacement has $200K of boot — taxable. The cleanest 1031s minimize boot by trading equal or up.
- Mortgage relief. Reducing the mortgage on the replacement property compared to the relinquished property creates "mortgage boot" — also taxable. The replacement property's debt has to equal or exceed the relinquished property's debt to avoid this.
- Same taxpayer. The party that sold the relinquished property must be the same taxpayer that acquires the replacement property. Investors holding through LLCs need to coordinate carefully if any restructuring is contemplated around the exchange.
What it takes to execute one correctly
A real-estate-experienced CPA flags the 1031 option before the relinquished property is listed, runs the basis and boot math, coordinates with a qualified intermediary, and helps the investor evaluate replacement properties against the timeline.
OLarry works with real estate investors on 1031 planning as part of the broader entity and depreciation strategy — so the exchange isn't a panic decision made in the 30 days before listing but a coordinated move with the rest of the investment plan.
When to start the conversation
The day you start thinking about selling. Not the day the listing goes live. Not the day the buyer makes an offer. The 45-day clock starts when the relinquished property closes, but the structure that makes a 1031 work — the QI engagement, the replacement property pipeline, the basis math — has to be assembled in the weeks before.
Investors who treat the 1031 as a strategy run successful exchanges. Investors who treat it as an afterthought run failed ones.
OLarry works with real estate investors on the planning that makes a 1031 hold up — before the closing, not after. Read their Sam's List reviews and book an intro call before the next property goes on the market.
Continue exploring
Related Sam's List pages
- Blog
- Blog - 10 Financial Advisors To Know If Youre A Founder
- Blog - 1099 Da Explained Crypto Investors Schedule D
- Blog - 1099 W9 Mistakes To Avoid
- Blog - 1800accountant Alternatives
- Blog - 1800accountant Vs Sams List
- Blog - 280e Cannabis Cogs Explained
- Blog - 5 Accounting Decisions That Shape Your First Year In Business
- Blog - 5 Bookkeeping Habits That Keep Property Management Companies Out Of Trouble
- Blog - 5 Cash Flow Mistakes
- Blog - 5 Crypto Tax Events That Happen Before You Ever Sell
- Blog - 5 Month End Close Steps Most Small Teams Skip
- Blog - 5 Numbers A Banker Reads First When You Ask For A Line Of Credit
- Blog - 5 Qsbs Mistakes That Cost Founders Money At Exit
- Blog - 5 Real Estate Tax Strategies Most Investors Never Hear About
- Blog - 5 Reasons Your Accountant Should Specialize In Your Industry
- Blog - 5 Sales Tax Nexus Triggers Every Online Seller Should Know
- Blog - 5 Signs Your Small Business Needs A Cpa Not Just A Tax Preparer
- Blog - 5 Tax Moves Bootstrapped Founders Miss
- Blog - 5 Trust Accounting Rules That Keep Law Firms Out Of Trouble With The Bar
- Blog - 5 Year End Tax Moves For Course Creators And Online Educators
- Blog - 5 Year End Tax Moves For High Earners Before December 31
- Blog - 6 Accounts Payable Habits That Quietly Cost A Growing Business Money
- Blog - 6 Beneficiary Designation Mistakes That Override What Your Will Says
- Blog - 6 Bookkeeping Cleanups Worth Doing Before You Apply For A Business Loan
- Blog - 6 Bookkeeping Habits That Keep Partnership Capital Accounts Accurate
- Blog - 6 Bookkeeping Habits That Keep Small Businesses Audit Ready
- Blog - 6 Bookkeeping Red Flags Real Estate Investors Miss Until Tax Season
- Blog - 6 Bookkeeping Terms Every Founder Should Actually Understand
- Blog - 6 Bookkeeping Workflows Every Solo Law Practice Needs
- Blog - 6 Cash Flow Warning Signs Founders Miss Until Its Too Late
- Blog - 6 Crypto Estate Gaps That Leave Heirs Locked Out Or Overtaxed
- Blog - 6 Deferred Revenue Mistakes That Distort A Saas Companys Books
- Blog - 6 Defi Tax Reporting Mistakes That Trigger Irs Letters
- Blog - 6 Financial Blind Spots That Cost Insurance Agency Owners Real Money
- Blog - 6 Income Decisions That Trigger Medicare Irmaa Two Years Later
- Blog - 6 Money Decisions Corporate Executives Face In The Year Before They Retire
- Blog - 6 Numbers A Buyer Will Recalculate When You Sell Your Business
- Blog - 6 Numbers Every Business Owner Should Know
- Blog - 6 Numbers Founders Should Check Before Every Big Spending Decision
- Blog - 6 Numbers Physical Therapy And Chiropractic Owners Should Check Every Month
- Blog - 6 Numbers That Tell You Whether Your Self Storage Facility Is Actually Working
- Blog - 6 Numbers To Check Before You Open A Second Location
- Blog - 6 Numbers To Settle Before A Marketing Agency Raises Its Retainer Prices
- Blog - 6 Payroll Mistakes That Cost Small Business Owners Real Money
- Blog - 6 Questions To Answer Before You Put A Family Member On Payroll
- Blog - 6 Questions To Ask A Cpa Before Your First Funding Round
- Blog - 6 Questions To Ask A Fee Only Financial Advisor Before You Hire One
- Blog - 6 Questions To Ask Before You Buy An Annuity
- Blog - 6 Questions To Ask Before You Move A Tsp Balance Into An Ira
- Blog - 6 Questions To Ask Before You Open A Donor Advised Fund
- Blog - 6 Questions To Ask Before You Retire Early And Bridge To Medicare
- Blog - 6 Questions To Ask Before You Switch Accounting Systems
- Blog - 6 Questions To Ask Before You Take Your First Required Minimum Distribution
- Blog - 6 Reasons Your Break Even Number Is Wrong
- Blog - 6 Reasons Your Effective Tax Rate Is Higher Than Your Tax Bracket
- Blog - 6 Reasons Your Gross Margin Moved When Your Business Did Not
- Blog - 6 Retirement Account Decisions To Make In The Year You Turn 73
- Blog - 6 Revenue Recognition Traps That Sink Saas Audits
- Blog - 6 Rules For Claiming Crypto Losses On Your Tax Return
- Blog - 6 Rules For Deducting A Cryptocurrency Donation To Charity
- Blog - 6 Rules For Handling Unclaimed Client Money In A Law Firms Trust Account
- Blog - 6 Rules For Paying Yourself From An Llc Taxed As A Partnership
- Blog - 6 Rules For Recording Referral Fees And Fee Splits In A Law Firms Books
- Blog - 6 Rules For Writing Off A Vehicle Without Inviting An Audit
- Blog - 6 Sales Tax Rules That Catch Home Service Businesses That Install What They Sell
- Blog - 6 Signs Your Business Has Outgrown A Part Time Bookkeeper
- Blog - 6 Signs Your Business Needs A Controller Not Another Bookkeeper
- Blog - 6 Signs Your Ecommerce Brand Has Outgrown Diy Sales Tax
- Blog - 6 State Franchise Tax Traps That Catch Businesses Registered In More Than One State
- Blog - 6 Tax Filings Real Estate Investors Miss After Buying In A New State
- Blog - 6 Tax Moves For Newsletter And Podcast Creators Making Real Money
- Blog - 6 Tax Questions To Settle Before You Move Crypto Into An Llc Or Trust
- Blog - 6 Tax Rules Crypto Miners And Node Operators Get Wrong
- Blog - 6 Tax Rules To Understand Before You Borrow Against Your Crypto
- Blog - 6 Tax Strategies That Separate Proactive Cpas From Tax Preparers
- Blog - 6 Things That Break When A Startup Switches From Cash To Accrual Books
- Blog - 6 Things To Check On A Financial Advisors Form Adv Before You Hire Them
- Blog - 6 Things To Check On Your K 1 Before You File Your Personal Return
- Blog - 6 Things To Fix In Your Chart Of Accounts Before You Try To Read Your P And L
- Blog - 6 Things To Review With A Financial Advisor Before A Liquidity Event
- Blog - 6 Things To Set Up Before You Add A Second Entity To Your Business
- Blog - 6 Things To Settle Before You Amend A Business Tax Return
- Blog - 6 Things To Settle Before You Sign A Letter Of Intent To Sell Your Business
- Blog - 6 Things To Understand About A Donor Advised Fund Before You Fund One In 2026
- Blog - 6 Things To Understand About A Roth Conversion Before You Do One
- Blog - 6 Things To Understand About An Espp Before Your Next Purchase Period
- Blog - 6 Things Your Bookkeeping Software Wont Catch But A Bookkeeper Will
- Blog - 6 Things Your Lender Expects Every Month After The Loan Closes
- Blog - 6 Travel And Per Diem Rules That Keep Owner Trips Deductible
- Blog - 6 Unit Economics Numbers Investors Check Before Your Next Raise
- Blog - 6 Ways Asset Location Changes What You Keep After Taxes
- Blog - 6 Ways Credit Card Processing Fees Create Trust Account Problems For Law Firms
- Blog - 6 Ways Law Firms Get Advanced Client Costs Wrong In Their Books
- Blog - 6 Ways Unbilled Work Distorts A Service Businesss Revenue
- Blog - 7 Bookkeeping Controls That Catch Employee Theft Before It Gets Expensive
- Blog - 7 Bookkeeping Red Flags In Multi Location Restaurants
- Blog - 7 Deductions That Get Denied For Bad Records Not Bad Reasons
- Blog - 7 Ecommerce Bookkeeping Mistakes That Quietly Inflate Your Tax Bill
- Blog - 7 Employee Benefits That Are Tax Free To Your Team And Deductible To Your Business
- Blog - 7 Financial Reports Your Cfo Should Send You Every Month
- Blog - 7 Fixed Asset Mistakes That Quietly Distort Your Balance Sheet
- Blog - 7 Household Employer Rules That Catch High Earners At Tax Time
- Blog - 7 Internal Controls A 10 Person Business Can Actually Run
- Blog - 7 Mistakes Founders Make When They Pay Themselves
- Blog - 7 Mistakes That Turn An Iso Exercise Into An Amt Bill You Did Not Plan For
- Blog - 7 Money Leaks That Quietly Shrink An Hvac Or Plumbing Business
- Blog - 7 Numbers Every 8 Figure Founder Should Know Cold
- Blog - 7 Numbers To Check In A Commercial Lease Before You Sign It
- Blog - 7 Overhead Costs That Grow Faster Than Your Revenue
- Blog - 7 Questions That Reveal Whether Your Financial Advisor Is A True Fiduciary
- Blog - 7 Questions To Answer Before You Merge Two Companies Books Onto One System
- Blog - 7 Questions To Answer Before Your Startups First 409a Valuation
- Blog - 7 Questions To Ask Before You Enroll In A Deferred Compensation Plan
- Blog - 7 Questions To Ask Before You Roll Over An Old 401k
- Blog - 7 Questions To Ask Before You Sign An Irs Installment Agreement
- Blog - 7 Reasons Your Budget Vs Actual Report Is Not Telling You Anything
- Blog - 7 Reasons Your Cash Flow Forecast Keeps Missing
- Blog - 7 Records That Support A Home Office Deduction If The Irs Asks
- Blog - 7 Records To Keep From Day One If You Want To Claim Qsbs Later
- Blog - 7 Red Flags To Watch For When Hiring An Accountant Online
- Blog - 7 Rules For A Corporate Card Policy That Keeps Your Books Clean
- Blog - 7 Rules For Recording Settlement Disbursements And Third Party Liens In A Law Firms Books
- Blog - 7 Rules To Get Right Before You Pay An Employee Or Contractor In Crypto
- Blog - 7 Saas Metrics Your Bookkeeper Should Track Before Your Board Does
- Blog - 7 Signs Your Shopify Books Wont Survive Due Diligence
- Blog - 7 Signs Youre Overpaying In Taxes Every Year
- Blog - 7 Signs Youve Outgrown Your Cpa 1
- Blog - 7 State Registrations To Finish Before Your First Out Of State Hire
- Blog - 7 Steps To A Month End Close That Finishes In Five Business Days
- Blog - 7 Tax Planning Moves Your Financial Advisor And Cpa Should Coordinate
- Blog - 7 Tax Write Offs Solopreneurs Forget Every Year
- Blog - 7 Things The New Form 6765 Wants To Know About Your Rd Credit
- Blog - 7 Things To Check Before You Take A Big Distribution From Your Business
- Blog - 7 Things To Fix In A Law Firms Books Before You Add A Second Partner
- Blog - 7 Things To Get Right Before You Turn Your Primary Residence Into A Rental
- Blog - 7 Things To Settle About Sales Commissions Before Your First Rep Starts
- Blog - 7 Things To Settle Before You Claim Social Security
- Blog - 7 Things To Settle Before You Claim The Foreign Earned Income Exclusion
- Blog - 7 Things To Settle Before You Exercise Your Startup Stock Options
- Blog - 7 Things To Settle Before You Hold Crypto In A Self Directed Ira
- Blog - 7 Things To Settle Before Your Business Starts Accepting Crypto As Payment
- Blog - 7 Things To Settle Before Your Saas Company Pays Its First Contractor Overseas
- Blog - 7 Things To Settle In Your Books Before You Take On A Business Partner
- Blog - 7 Timing Rules That Decide Which Tax Year An Expense Lands In
- Blog - 7 Vehicle Expense Records That Decide Whether Your Mileage Deduction Survives
- Blog - 7 Ways Worker Misclassification Shows Up In Your Books
- Blog - 8 Signs Your Books Are A Disaster
- Blog - 8 Signs Your Business Has Outgrown Diy Bookkeeping
- Blog - A Weekend In My Life As A Cofounder
- Blog - Aba Rule 1 15 Explained Law Firms
- Blog - Accountable Plan Explained S Corp
- Blog - Accountant For Crypto Investors
- Blog - Accountant Software Preferences
- Blog - Accounting Cleanup Saves More Than It Costs
- Blog - Accounting Questions Amazon Seller Cpa
- Blog - Accounting Questions To Settle Before Your Safes Convert
- Blog - Accrual Accounting Startups Institutional Investors
- Blog - Acquisition Asset Vs Stock Purchase Explained
- Blog - Acquisition Entrepreneur Financial Operations Day One
- Blog - Acquisition Entrepreneur Modernized Books 90 Days
- Blog - Acquisition Entrepreneurs First 90 Days Mistakes
- Blog - Acquisition Profitability By Service Line Day One Case Study
- Blog - Advisors Washington Dc Tech
- Blog - Aerospace Defense Advisors
- Blog - Agency Bookkeeping Habits Cash Flow
- Blog - Agency Books Fix Before Sale
- Blog - Amazon Sellers Profitability Mistakes
- Blog - Architecture Engineering Project Based Accounting
- Blog - Are Financial Advisors Overpriced
- Blog - Arr Mrr Vs Revenue Saas Tax Difference
- Blog - Asc 606 Saas Revenue Plain English
- Blog - Attorney Bookkeeping Workflows Bar Audit
- Blog - Augusta Rule Business Owner Tax Savings
- Blog - Austin Outsourced Accounting For Startups
- Blog - Auto Repair Shop Specialized Bookkeeper
- Blog - B2b Saas Financial Benchmarks 2026
- Blog - B2b Service Firms Profit By Client
- Blog - Bad Debt Rules That Decide When You Can Write Off An Unpaid Invoice
- Blog - Bench Accounting Acquired By Employer Com
- Blog - Bench Accounting Shutdown Employer Com Acquisition
- Blog - Bench Accounting Shutdown Tax Season Alternatives
- Blog - Benefits Of Hiring A Fractional Cfo For Small Businesses
- Blog - Benefits Of Outsourced Accounting
- Blog - Benefits Of Specialized Accounting For Solopreneurs
- Blog - Best Accountants For Amazon Fba Sellers In 2026
- Blog - Best Accountants For Crypto And Web3 Founders In 2026
- Blog - Best Accountants For Digital Nomads And Remote Founders In 2026
- Blog - Best Accountants For Ecommerce Brands In 2026
- Blog - Best Accountants For Medical And Dental Practices In 2026
- Blog - Best Accountants For Real Estate Investors In 2026
- Blog - Best Accountants For Real Estate Investors In Utah County 2026
- Blog - Best Accountants For Saas And Software Startups In 2026
- Blog - Best Accountants For Startups
- Blog - Best Accountants In Boston For Real Estate Investors In 2026
- Blog - Best Accountants In Boston For Startups And Small Businesses 2026
- Blog - Best Accountants In Boston For The Massachusetts 4 Surtax In 2026
- Blog - Best Accountants In California For Small Business Owners In 2026
- Blog - Best Accountants In California For The Llc Fee And Franchise Tax In 2026
- Blog - Best Accountants In Detroit For Real Estate Investors In 2026
- Blog - Best Accountants In Florida For Founders Who Have Raised Outside Capital In 2026
- Blog - Best Accountants In Florida For Home Service And Trades Businesses In 2026
- Blog - Best Accountants In Florida For Small Business Owners In 2026
- Blog - Best Accountants In Idaho For Solopreneurs And Small Business Owners In 2026
- Blog - Best Accountants In Los Angeles For Entertainment And Media Income In 2026
- Blog - Best Accountants In Los Angeles For Founders In 2026
- Blog - Best Accountants In Los Angeles For Solopreneurs In 2026
- Blog - Best Accountants In Los Angeles For The City Business Tax In 2026
- Blog - Best Accountants In Miami For Real Estate Investors In 2026
- Blog - Best Accountants In Michigan For Small Business Owners In 2026
- Blog - Best Accountants In New Jersey For Crypto Investors In 2026
- Blog - Best Accountants In New Jersey For Small Business Owners In 2026
- Blog - Best Accountants In New York City For Freelancers And Independent Consultants In 2026
- Blog - Best Accountants In New York City For Growing Businesses In 2026
- Blog - Best Accountants In New York City For Real Estate Investors In 2026
- Blog - Best Accountants In New York City For Small Businesses In 2026
- Blog - Best Accountants In New York City For The Commercial Rent Tax In 2026
- Blog - Best Accountants In Ohio For Small Business Owners In 2026
- Blog - Best Accountants In Ohio For The Commercial Activity Tax In 2026
- Blog - Best Accountants In Oregon For Ecommerce And Online Sellers In 2026
- Blog - Best Accountants In Pennsylvania For Agencies And Service Businesses In 2026
- Blog - Best Accountants In Philadelphia For 7 And 8 Figure Businesses In 2026
- Blog - Best Accountants In Philadelphia For Small Business Owners 2026
- Blog - Best Accountants In Philadelphia For The Business Income And Receipts Tax In 2026
- Blog - Best Accountants In San Jose For Equity Compensation And Rsu Taxes In 2026
- Blog - Best Accountants In Tampa For The Florida Tangible Personal Property Tax In 2026
- Blog - Best Accountants In Texas For The Franchise Tax Report In 2026
- Blog - Best Accountants In The San Francisco Bay Area For Startup Founders In 2026
- Blog - Best Accountants In Utah For Small Business Owners In 2026
- Blog - Best Accountants New York City Unincorporated Business Tax 2026
- Blog - Best Accounting Firms For Startups
- Blog - Best Accounting Software For Ecommerce In California 2025 Guide
- Blog - Best Accounting Software For Small Business
- Blog - Best Accounting Software For Small Businesses
- Blog - Best Accounting Software For Small Businesses In
- Blog - Best Alternatives To Employer Com
- Blog - Best Bookkeepers For Marketing Agencies In 2026
- Blog - Best Bookkeepers For Small Businesses 2026
- Blog - Best Bookkeepers For Solopreneurs And Freelancers In 2026
- Blog - Best Bookkeepers In Austin For Startups And Saas In 2026
- Blog - Best Bookkeepers In Dallas Fort Worth For Law Firms In 2026
- Blog - Best Bookkeepers In Dallas Fort Worth For Small Businesses In 2026
- Blog - Best Bookkeepers In Miami For Florida Sales And Use Tax In 2026
- Blog - Best Bookkeepers In Miami For Small Business Owners In 2026
- Blog - Best Bookkeepers In New York City For Startups In 2026
- Blog - Best Bookkeepers In Seattle For Growing Businesses In 2026
- Blog - Best Bookkeepers In Seattle For The Payroll Expense Tax In 2026
- Blog - Best Bookkeepers In Texas For Growing Businesses In 2026
- Blog - Best Bookkeepers In Wilmington Nc For Small Business Owners In 2026
- Blog - Best Bookkeeping For Startups