Donald Trump declared a $916 million loss on his 1995 income tax returns, a tax deduction so substantial it could have allowed him to legally avoid paying any federal income taxes for up to 18 years, records obtained by the New York Times show.

The 1995 tax records, never before disclosed, reveal the extraordinary tax benefits that Trump, the Republican presidential nominee, derived from the financial wreckage he left behind in the early 1990s through mismanagement of three Atlantic City casinos, his ill-fated foray into the airline business and his ill-timed purchase of the Plaza Hotel in Manhattan.

Tax experts hired by the New York Times to analyze Trump's 1995 records said tax rules that are especially advantageous to wealthy filers would have allowed Trump to use his $916 million loss to cancel out an equivalent amount of taxable income over an 18-year period.

Although Trump's taxable income in subsequent years is as yet unknown, a $916 million loss in 1995 would have been large enough to wipe out more than $50 million a year in taxable income over 18 years.

The $916 million loss certainly could have eliminated any federal income taxes Trump otherwise would have owed on the $50,000 to $100,000 he was paid for each episode of The Apprentice, or the roughly $45 million he was paid between 1995 and 2009 when he was chairman or chief executive of the publicly traded company he created to assume ownership of his troubled Atlantic City casinos.

Ordinary investors in the new company, meanwhile, saw the value of their shares plunge to 17 cents from $35.50, while scores of contractors went unpaid for work on Trump's casinos and casino bondholders received pennies on the dollar.

"He has a vast benefit from his destruction" in the early 1990s, said one of the experts, Joel Rosenfeld, an assistant professor at New York University's Schack Institute of Real Estate. Rosenfeld offered this description of what he would advise a client who came to him with a tax return like Trump's: "Do you realize you can create $916 million in income without paying a nickel in taxes?"

Trump declined to comment on the documents. Instead, the campaign released a statement that neither challenged nor confirmed the $916 million loss.

"Mr. Trump is a highly-skilled businessman who has a fiduciary responsibility to his business, his family and his employees to pay no more tax than legally required," the statement said. "That being said, Mr. Trump has paid hundreds of millions of dollars in property taxes, sales and excise taxes, real estate taxes, city taxes, state taxes, employee taxes and federal taxes."

The statement continued: "Mr. Trump knows the tax code far better than anyone who has ever run for president and he is the only one that knows how to fix it."

Separately, a lawyer for Trump, Marc Kasowitz, emailed a letter to the New York Times arguing that publication of the records is illegal because Trump has not authorized the disclosure of any of his tax returns. Kasowitz threatened "prompt initiation of appropriate legal action."

Trump's refusal to make his tax returns public — breaking with decades of tradition in presidential contests — has emerged as a central issue in the campaign, with a majority of voters saying he should release them. Trump has declined to do so and has said he is being audited by the IRS.

At Monday's presidential debate, when Hillary Clinton suggested Trump was refusing to release his tax returns so voters would not know "he's paid nothing in federal taxes," and when she also pointed out that Trump had once revealed to casino regulators that he had paid no federal income taxes in the late 1970s, Trump retorted: "That makes me smart."

The tax experts consulted by the New York Times said nothing in the 1995 documents suggested any wrongdoing by Trump, even if the extraordinary size of the loss he declared would have probably triggered extra scrutiny from IRS examiners.

"The IRS, when they see a negative $916 million, that has to pop out," Rosenfeld said.

The documents examined by the New York Times represent a small fraction of the voluminous tax returns Trump would have filed in 1995.

The documents consisted of three pages from what appeared to be Trump's 1995 tax returns. The pages were mailed last month to Susanne Craig, a reporter at the New York Times who has written about Trump's finances. The documents were the first page of a New York state resident income tax return, the first page of a New Jersey nonresident tax return and the first page of a Connecticut nonresident tax return. Each page bore the names and Social Security numbers of Trump and Marla Maples, his wife at the time. Only the New Jersey form had what appeared to be their signatures.

The three documents arrived by mail at the New York Times with a postmark indicating they had been sent from New York City. The return address claimed the envelope had been sent from Trump Tower.

On Wednesday, the New York Times presented the tax documents to Jack Mitnick, a lawyer and certified public accountant who handled Trump's tax matters for more than 30 years, until 1996. Mitnick was listed as the preparer on the New Jersey tax form.

Mitnick, 80, now semiretired and living in Florida, said that while he no longer had access to Trump's original returns, the documents appeared to be authentic copies of portions of Trump's 1995 tax returns. Mitnick said the signature on the tax preparer line of the New Jersey tax form was his, and he readily explained an obvious anomaly in the way especially large numbers appeared on the New York tax document.

A flaw in the tax software program he used at the time prevented him from being able to print a nine-figure loss on Trump's New York return, he said. So, for example, the loss of "-915,729,293" on Line 18 of the return printed out as "5,729,293." As a result, Mitnick recalled, he had to use his typewriter to manually add the "-91," thus explaining why the first two digits appeared to be in a different font and were slightly misaligned from the following seven digits.

"This is legit," he said, stabbing a finger into the document.

Because the documents sent to the New York Times did not include any pages from Trump's 1995 federal tax return, it is impossible to determine how much he may have donated to charity that year.

The state documents do show, though, that Trump declined the opportunity to contribute to the New Jersey Vietnam Veterans' Memorial Fund, the New Jersey Wildlife Conservation Fund or the Children's Trust Fund. He also declined to contribute $1 toward public financing of New Jersey's elections for governor.

The tax documents also do not shed any light on Trump's claimed net worth of about $2 billion at that time. This is because the complex calculations of business deductions that produced a tax loss of $916 million are a separate matter from how Trump valued his assets, the tax experts said.

Nor does the $916 million loss suggest that Trump was insolvent or effectively bankrupt in 1995. The cash flow generated by his various businesses that year was more than enough to service his various debts.

But fragmentary as they are, the documents nonetheless provide new insight into Trump's finances, a subject of intense scrutiny given Trump's emphasis on his business record during the presidential campaign.

The documents show, for example, that while Trump reported $7.4 million in interest income in 1995, he made only $6,108 in wages, salaries and tips. They also suggest Trump took full advantage of generous tax loopholes specifically available to commercial real estate developers to claim a $15.8 million loss in 1995 on his real estate holdings and partnerships.

The most important revelation from the 1995 tax documents is just how much Trump may have benefited from a tax provision that is particularly prized by America's dynastic families, who, like the Trumps, hold their wealth inside byzantine networks of partnerships, limited-liability companies and S corporations.

The provision, known as "net operating loss," or NOL, allows a dizzying array of deductions, business expenses, real estate depreciation, losses from the sale of business assets and even operating losses to flow from the balance sheets of those partnerships, limited-liability companies and S corporations onto the personal tax returns of filers like Trump. In turn, those losses can then be used to cancel out an equivalent amount of taxable income from, say, book royalties or branding deals.

Better still, if the losses are big enough, they can cancel out taxable income earned in other years. Under IRS rules in 1995, net operating losses could be used to wipe out taxable income earned in the three years before and the 15 years after the loss. (The effect of net operating losses on state income taxes varies, depending on each state's tax regime.)

The tax experts consulted by the New York Times said the $916 million net operating loss declared by Trump in 1995 almost certainly included large net operating losses carried forward from the early 1990s, when most of Trump's key holdings were hemorrhaging money.

Reports by New Jersey's casino regulators strongly suggested that Trump had claimed large net operating losses on his taxes in the early 1990s. Their reports, for example, revealed that Trump had carried forward net operating losses in both 1991 and 1993. What's more, the reports said the losses he claimed were large enough to virtually cancel out any taxes he might owe on the millions of dollars of debt being forgiven by his creditors. (The IRS considers forgiven debt to be taxable income.)

But crucially, the casino regulators redacted the precise size of the net operating losses in the public versions of their reports. Two former New Jersey officials, who were privy to the unredacted documents, could not recall the precise size of the numbers but said they were substantial.

Mitnick was the person Trump leaned on most for his tax returns. The lawyer and accountant worked for a small Long Island accounting firm that specialized in handling tax issues for wealthy New York real estate families. Mitnick had long handled tax matters for Trump's father, Fred Trump, and he said he began doing Donald Trump's taxes after Trump turned 18.

In an interview Wednesday, Mitnick said he could not divulge details of Trump's finances without Trump's consent. But he did talk about Trump's approaches to taxes, and he contrasted Fred Trump's attention to detail with what he described as Trump's brash and undisciplined style. He recalled, for example, that when Donald and Ivana Trump came in each year to sign their tax forms, it was almost always Ivana who asked the most questions.

But if Trump lacked a sophisticated understanding of the tax code, and if he rarely showed any interest in the details behind various tax strategies, Mitnick said he clearly grasped the critical role taxes would play in helping him build wealth.

"He knew we could use the tax code to protect him," Mitnick said.

According to Mitnick, Trump's use of net operating losses was no different from that of his other wealthy clients.

"This may have had a couple extra digits compared to someone else's operation, but they all benefited in the same way," he said, pointing to the $916 million loss on Trump's tax returns.