A business associate agreement, or BAA, is the written contract HIPAA requires before a company handles protected health information for a covered entity such as a hospital, clinic, or health plan. It sets what the vendor may do with the data, how it must protect it, and what it must report. If your software handles patient data, you will sign BAAs with your customers, and you will need your own BAAs with the vendors behind you.

What is a business associate agreement?

Under 45 CFR 164.308(b), a covered entity may let a business associate handle electronic protected health information only after it gets satisfactory assurances that the business associate will protect it, documented in a written contract. A business associate needs the same assurances from its own subcontractors. The terms the contract must contain are listed in 45 CFR 164.504(e).

The regulations call it a business associate contract, and most people say BAA. It can be a separate agreement or a set of provisions inside your main service agreement. HHS publishes sample business associate agreement provisions and says either form can work.

The stakes are real for the vendor. HHS says a business associate is directly liable under the HIPAA Rules for uses and disclosures its contract doesn't allow, and for failing to safeguard electronic health data as the Security Rule requires. The BAA is where your duties get written down, and where your customer's expectations become terms you can be held to.

Who signs with whom?

Follow the data. Each company that creates, receives, maintains, or transmits the PHI on someone else's behalf signs with the company that handed it over.

  • The covered entity and you. A clinic using your scheduling software signs a BAA with your company, because your system holds its patients' data.
  • You and your subcontractors. Your cloud host, database provider, backup service, email or SMS provider, support desk, and error tracker each sign with you if they handle that data. Each one is a subcontractor business associate.
  • Your subcontractors and theirs. The chain keeps going. Under 164.504(e)(5), the same contract rules apply between a business associate and its subcontractor as between a covered entity and a business associate.

Your customer usually signs only with you. Microsoft describes this pattern in its HIPAA documentation for Azure. If you run a healthcare SaaS product on Azure, your customers can sign a BAA directly with you, and they don't need one with Microsoft. You hold the BAA with Microsoft, and you answer to your customers for the whole chain.

Cloud providers are business associates, even without the key

It's tempting to assume encryption takes a vendor out of HIPAA. HHS says it doesn't. Its guidance on HIPAA and cloud computing says a cloud provider that creates, receives, maintains, or transmits ePHI for a covered entity or business associate is a business associate, even if it stores only encrypted data and has no decryption key. That provider is liable under its BAA and directly liable under the HIPAA Rules.

The exception for "conduits," like the postal service, is narrow. HHS limits it to services that only transmit data, with no storage beyond what the transmission briefly requires. A provider that stores the data is a business associate.

Using a cloud provider for ePHI without a BAA is itself a violation. In the same guidance, HHS notes it entered a resolution agreement with a covered entity that stored ePHI of more than 3,000 people on a cloud server without a BAA. The fix is worth making before anyone asks. Sign the BAA, or move the data to a provider that will.

One more line from that guidance helps engineering teams. A cloud provider that holds only properly de-identified information is not a business associate. Keep real patient data out of development and test environments, and the vendors behind those environments stay out of the chain.

What goes in a BAA

The regulation sets a floor. Every BAA must require the business associate to do these things.

  • Use and disclose PHI only as the contract permits or the law requires.
  • Use appropriate safeguards, and follow the Security Rule for electronic PHI.
  • Report any use or disclosure the contract doesn't allow, including breaches of unsecured PHI and security incidents.
  • Make sure its subcontractors agree to the same restrictions and conditions.
  • Make PHI available so the covered entity can meet patients' rights to access and amend their records and to get an accounting of disclosures.
  • Follow the Privacy Rule when it carries out one of the covered entity's Privacy Rule duties.
  • Open its books and records to HHS when HHS checks compliance.
  • Return or destroy the PHI when the contract ends, if feasible, and keep protecting anything it must retain.

The contract must also let the covered entity end it if the business associate violates a material term. Above that floor, BAAs differ in the terms that matter day to day. Read these closely.

  • Breach notice deadline. A business associate's outer limit is 60 calendar days after discovery, under 45 CFR 164.410. HHS's sample provisions note that the parties may agree on a stricter timeframe, and your customer may ask for one.
  • Who notifies patients. The covered entity stays responsible for notice to individuals, but it can hand that work to you by agreement.
  • Security incident reports. How much detail you report, how often, and for which kinds of incidents.
  • Audit and evidence rights. Whether the customer can request documentation of your safeguards or audit you.
  • De-identification. Whether you may de-identify the data, and what you may do with the result.

Line up your deadlines before you sign. The notice windows your vendors give you have to leave you time to meet the window you promise your customer. Some vendors publish theirs. Neon's HIPAA documentation, for example, commits to notice no later than five business days after Neon becomes aware of a breach, as of November 2026. A BAA carries real liability, so check with your counsel before you agree to terms your chain can't support.

Common BAA mistakes in software teams

  • Email and texting without a BAA. Appointment reminders and support replies that include patient details send PHI through your email or SMS provider.
  • Analytics, session replay, and error tracking. These tools can capture what is on screen or inside a request. If that includes PHI, the vendor is handling PHI. Hosting vendors warn about the same habit, and Render's HIPAA documentation says PHI must stay out of logs, build artifacts, and resource names such as table and column names.
  • AI tools. Pasting a patient's message into a chat assistant, or building an AI feature that sends records to a model provider, puts PHI with that provider. You need a BAA that covers that specific service, or PHI has to stay out.
  • App builders that don't sign. Some AI app builders' standard terms bar health data entirely. See what Lovable, Bolt, and Replit allow.
  • Assuming one BAA covers every product. Large clouds cover listed services only. AWS tells customers to keep PHI in HIPAA-eligible services, and Google Cloud's list of covered products does not include Firebase-branded products.
  • Signing the customer's paper without checking your chain. A hospital may send its own BAA with a short breach notice window or broad audit rights. Before you sign, check that your vendors' terms let you keep those promises.
  • Treating the BAA as compliance. Microsoft answers this plainly in its Azure FAQ. Having a BAA with Microsoft does not ensure your compliance, and Microsoft "doesn't inspect, approve, or monitor your applications."

How to get your BAA chain in order

  1. Map every system that stores, processes, sends, or logs patient data, including tools someone added for convenience.
  2. For each vendor, confirm a signed BAA, check that it covers the exact services you use, and note its breach notice terms.
  3. Remove PHI from any tool that can't sign, by scrubbing logs, masking fields, and using synthetic data outside production.
  4. Keep a short register with the vendor, the service, the BAA date, the notice window, and the renewal date.
  5. Check the chain again whenever you add a vendor, a feature, or an AI provider.

Do this before the first real patient record arrives. A customer's security reviewer may ask for the list, and it is far easier to show a finished register than to build one while a deal waits.

That map also feeds your HIPAA risk analysis. For the bigger picture, start with HIPAA for software teams. For hosting options, see which hosting and database providers sign a BAA. And if someone offers to make you "HIPAA certified" instead, read why no such certification exists.

What to do next

Take the free 2-minute self-check to spot patient data in places it shouldn't be. If that data needs a home, our Secure Data Foundation hosts it in an environment we run and monitor, and we sign a business associate agreement for the patient data we host.

The Compliance Readiness Review starts with a data map that includes every vendor touching PHI, and ties each finding to the HIPAA requirement it affects. Our HIPAA page shows how hosting, fixes, and your risk analysis fit together.