The statutory hook is a single phrase, and it appears in more than one place. IRC 1221(a)(1) removes from the definition of a capital asset "stock in trade of the taxpayer or other property of a kind which would properly be included in the inventory of the taxpayer if on hand at the close of the taxable year, or property held by the taxpayer primarily for sale to customers in the ordinary course of his trade or business." Property that falls inside that paragraph is not a capital asset at all, so gain on its sale is ordinary income and no holding period saves it.
The self-employment consequence follows from the same words, which is the elegant and easily missed part. The hook is not the rental provision at IRC 1402(a)(1); that one is about a dealer's rents. It is IRC 1402(a)(3)(C), which excludes gain from net earnings from self-employment only where the property is neither "(i) stock in trade or other property of a kind which would properly be includible in inventory if on hand at the close of the taxable year, nor (ii) property held primarily for sale to customers in the ordinary course of the trade or business." A dealer's property fails both limbs, so the gain is not excluded and self-employment tax applies on top of ordinary rates. Because section 1402(a)(3)(C) reuses section 1221(a)(1)'s exact language, one determination settles both the character of the income and whether the self-employment charge attaches.
Two further doors close at the same moment. A like-kind exchange under section 1031 is unavailable, because property held primarily for sale is excluded from it, which is why "flip into a 1031" is not a strategy. And the installment method is unavailable: IRC 453(b)(2)(A) excludes any dealer disposition from the definition of an installment sale, and section 453(l)(1)(B) defines a dealer disposition to include "any disposition of real property which is held by the taxpayer for sale to customers in the ordinary course of the taxpayer's trade or business." A dealer who sells with seller financing therefore reports the whole gain in the year of sale while collecting the price over years, which is a cash-flow problem as well as a tax one. A smaller point in the same family: depreciation "does not apply to inventories or stock in trade," so a dealer who rents out a stalled flip while waiting for a buyer does not get the depreciation an ordinary landlord would.
The one thing the Supreme Court has settled is the meaning of "primarily". In Malat v. Riddell, 383 U.S. 569 (1966), a joint venture had acquired land with a dual purpose, to develop it for rental or to sell it, whichever proved more profitable. The Government urged that a purpose could be "primary" if it was a "substantial" one. The Court, in a brief per curiam opinion, disagreed and held that the word "primarily," as used in the statute, means "of first importance" or "principally," vacating the judgment below and remanding. That is a meaningful protection for a taxpayer with mixed motives, because a substantial intention to sell is not enough on its own.
Everything else about the determination is case law, and it has no bright line. No statute or regulation supplies a test, a number of properties, or a holding period that settles the question. Courts weigh the facts, and the considerations that recur across the decided cases are the frequency and continuity of sales, the extent of improvement, subdivision and development work, the effort put into marketing and sales, the taxpayer's purpose when the property was acquired and when it was sold, and how the activity fits with the taxpayer's other occupations. No single factor controls and the same person can be a dealer as to some properties and an investor as to others. Anyone told that "two flips a year" or "holding twelve months" makes the answer certain has been given a rule that does not exist.
The boundary with buy-and-hold strategies is the exit, not the renovation. An investor who buys, renovates, rents and refinances a property, keeping it, is doing something structurally different from a flipper, however similar the first two steps look. The held property produces rental income, is depreciable, and remains eligible for capital treatment on an eventual sale. The flipped property is sold, which is what makes the dealer question live.