There are three bases, not two, and the third is the one people file wrong returns over. Section 1015(a) states the general rule and then its exception in one sentence: the basis is the donor's, "except that if such basis (adjusted for the period before the date of the gift as provided in section 1016) is greater than the fair market value of the property at the time of the gift, then for the purpose of determining loss the basis shall be such fair market value." Read quickly that sounds like a choice between two numbers. It is not. Each number governs a different question, and a sale price sitting between them answers neither.
Regulation 1.1015-1(a)(2) works it out in a single example: "A acquires by gift income-producing property which has an adjusted basis of $100,000 at the date of gift. The fair market value of the property at the date of gift is $90,000. A later sells the property for $95,000. In such case there is neither gain nor loss. The basis for determining loss is $90,000; therefore, there is no loss. Furthermore, there is no gain, since the basis for determining gain is $100,000."
Publication 551 states the same result as a test the reader can apply: "If you use the donor's adjusted basis for figuring a gain and get a loss, and then use the FMV for figuring a loss and have a gain, you have neither gain nor loss on the sale or disposition of the property." So the honest summary is that a gift of depreciated property creates a dead zone between the two figures in which the disposition is simply not a taxable event, and the built-in loss is destroyed for both people: the giver could have sold and claimed it, the recipient cannot.
Business property is an exception to the loss side. Publication 551, verbatim: "If you hold the gift as business property, your basis for figuring any depreciation, depletion, or amortization deduction is the same as the donor's adjusted basis plus or minus any required adjustments to basis while you hold the property." The depreciation basis is the donor's figure even where fair market value at the gift was lower.
The holding period comes across with the basis. Section 1223(2) includes in the recipient's holding period the period the property was held by the other person, "if under this chapter such property has, for the purpose of determining gain or loss from a sale or exchange, the same basis in whole or in part in his hands as it would have in the hands of such other person." Regulation 1.1223-1(b) gives the gift as its own worked illustration. The practical effect is that a recipient who sells the next week still has long-term capital gain if the giver had held the asset for more than a year. Note the condition, though: the tacking rule is expressed in terms of the recipient taking the same basis as the transferor, so it follows the carryover figure rather than the substituted fair-market-value figure.
Gift tax paid can raise the basis, and the version everyone quotes is the wrong one. Section 1015(d)(1)(A) increases the basis "(but not above the fair market value of the property at the time of the gift) by the amount of gift tax paid with respect to such gift." That is the general form of the rule, and it is the version most summaries stop at. For any modern gift, section 1015(d)(6)(A) narrows it: for a gift made after December 31, 1976, the increase is only the portion of the tax that bears "the same ratio to the amount of tax so paid as— (i) the net appreciation in value of the gift, bears to (ii) the amount of the gift," and section 1015(d)(6)(B) defines net appreciation as the excess of the gift's fair market value over the donor's adjusted basis immediately before it. So only the appreciation-proportionate share of the gift tax is added, capped at the tax actually paid and still never above fair market value at the gift. Section 1015(d)(3) handles split gifts by summing both halves.
In practice this almost never bites. With the lifetime exclusion at $15,000,000, a reportable gift ordinarily consumes exclusion and produces no gift tax at all, so there is nothing to add. It belongs on the page because it is the step a reader will find described somewhere as routine, and it is not.
Transfers between spouses are outside this section, and getting this backwards invents a tax problem that does not exist. Section 1015(e) is unambiguous: for property acquired by gift in a transfer described in section 1041(a), "the basis of such property in the hands of the transferee shall be determined under section 1041(b)(2) and not this section." A transfer to a spouse, or to a former spouse incident to divorce, carries the transferor's basis with no dual-basis loss haircut and no dead zone. Publication 551 states the same rule in its own section on property transferred from a spouse.
One further limb the heading promises. Section 1015(b) covers property acquired by a transfer in trust that is not a gift, bequest, or devise: the basis is the grantor's, "increased in the amount of gain or decreased in the amount of loss recognized to the grantor on such transfer." That is a different transaction from an ordinary gift and is why the section's title mentions transfers in trust separately.
How this sits against the rule at death. A gift moves basis; death resets it. That contrast is the sharpest planning consequence in this area and it is taught in full on the page for the step-up in basis, which owns date-of-death valuation and the disappearing gain. The point to carry away from this page is the narrower one: section 1015 is the reason a gift of appreciated property is a transfer of the tax bill as well as the asset, and section 1015(a)'s loss rule is the reason a gift of depreciated property destroys a deduction rather than transferring it.