# Bankruptcy

Chapter 7 and Chapter 13 bankruptcy, discharge rules, and tax debts in bankruptcy

5 posts [View all tags](https://beancount.io/blog/tags) [Back to All Posts](https://beancount.io/blog)

October 30, 2026 11 min read

## [Subordination Agreements, Explained: How Junior Lenders Sign Away Priority](https://beancount.io/blog/2026/10/30/subordination-agreements-explained-lien-payment-standstill-intercreditor-guide)

A subordination agreement ranks one lender's claim behind another's — lien subordination orders collateral, payment subordination orders cash.

Mike Thrift

loans business-loans debt-management

October 2, 2026 12 min read

## [Canceled Mortgage Debt Is Taxable Again in 2026: What the Expired Principal-Residence Exclusion Means for You](https://beancount.io/blog/2026/10/02/canceled-mortgage-debt-taxable-2026-principal-residence-exclusion-expired-guide)

Canceled mortgage debt is taxable income again in 2026 — the IRS principal-residence exclusion expired. Insolvency and bankruptcy on Form 982 can shelter you.

Mike Thrift

tax tax-planning tax-compliance

September 28, 2026 9 min read

## [Your Stock Went to Zero: How the Worthless-Securities Deduction Works](https://beancount.io/blog/2026/09/28/worthless-stock-securities-deduction-section-165g-8949-guide)

Stock that became totally worthless is deemed sold Dec. 31 under IRS Section 165(g) — report $0 proceeds on Form 8949 and amend up to 7 years back.

Mike Thrift

tax tax-deductions capital-gains

September 25, 2026 10 min read

## [The PACA Trust: How Produce Sellers Get Paid First When a Buyer Goes Bankrupt](https://beancount.io/blog/2026/09/25/paca-trust-produce-sellers-get-paid-first-bankruptcy-guide)

Under 7 U.S.C. 499e(c), unpaid produce sellers are paid from a buyer's trust assets before other creditors — if terms stay ≤30 days and notice is timely.

Mike Thrift

agriculture bankruptcy accounts-receivable

September 14, 2026 12 min read

## [Can Bankruptcy Wipe Out Your IRS Debt? The 3-Year, 2-Year, and 240-Day Rules Explained](https://beancount.io/blog/2026/09/14/bankruptcy-discharge-irs-tax-debt-3-2-240-rule-guide)

Chapter 7 can erase income taxes when the return was due over 3 years ago, filed over 2 years ago, and assessed over 240 days ago, with no fraud or evasion — but trust fund taxes, unfiled returns, and recorded tax liens survive every discharge.

Mike Thrift

bankruptcy tax tax-compliance

[Start Free→](https://beancount.io/sign-up/?next=%2Fledger%2F) [Documentation](https://beancount.io/docs)

## Where to look next

- [Sitemap](https://beancount.io/sitemap.xml) - all pages with hreflang alternates
- [LLMs index](https://beancount.io/llms.txt) - curated links for AI agents (also /llms-full.txt for full docs)
- [Documentation](https://beancount.io/docs) - every doc is also available as text/markdown via .md suffix or Accept negotiation
- [REST API reference](https://beancount.io/docs/api-reference) - interactive endpoints, schemas, authentication, and code samples
- [OpenAPI spec](https://beancount.io/openapi.json) - OpenAPI 3.1 spec for this website's public content endpoints; the product contract for ledger operations is at https://beancount.io/api-gateway/v1/openapi.json
- [GraphQL](https://beancount.io/graphql) - public, read-only content API over the blog and research logs (no credentials, no ledger data): 12 query fields over 23 types
- [MCP server](https://beancount.io/mcp) - Model Context Protocol at https://beancount.io/api-gateway/mcp
