Every cash value policy carries a number most owners never see on their annual statement: the cost basis. Your cost basis is the total you've paid in premiums, minus money you've already taken out tax-free. It decides how much you can pull out of the policy before taxes come into it.
How it's figured
Start with every premium dollar you've paid. Subtract any withdrawals you've taken. A withdrawal means money taken out of the cash value for good, not borrowed. Dividends you've taken as a check also lower your basis. Policy loans don't change it, because a loan is borrowed against the cash value, not taken out of it.
An example
Say you've paid $60,000 in premiums and the cash value has grown to $85,000. Your cost basis is $60,000, and the other $25,000 is gain.
You take a $15,000 withdrawal. As long as the policy isn't a MEC, the IRS treats withdrawals as coming out of your basis first. MEC is short for modified endowment contract, which means a policy that was funded faster than the tax law allows, and it loses this treatment. So the $15,000 comes out tax-free, your basis drops to $45,000, and the cash value drops to $70,000. The $25,000 of gain is still inside the policy, untaxed.
You could withdraw another $45,000 the same way before you'd start reaching the gain. Past that point, most people switch to policy loans, because a loan isn't taxed as income while the policy stays in force.
Where the basis comes back
If you ever surrender the policy, you owe ordinary income tax on whatever you receive above your basis, counting any loan the surrender pays off as money you received. In the example, surrendering for $70,000 with no loan means $25,000 of taxable income. The same math applies if a policy with a big loan lapses. The loan gets paid off from the cash value, the IRS counts that as money you received, and you can owe tax even though no check arrives.
Before you take a withdrawal
A withdrawal lowers your cash value and your death benefit, and you can't put it back the way you'd pay back a loan. In the first 15 years of a policy, a withdrawal that comes with a cut in the death benefit can also be taxed differently than the basis-first rule above. And if your policy is a MEC, the order flips: gain comes out first and is taxed, with a 10% penalty on top if you're under 59 and a half.
Your carrier will give you your current cost basis if you call or send a written request, so ask for it before you take money out. I'm a licensed insurance broker, not a CPA, so run the tax side past your tax preparer before you act on it.