Copyright Protection for Software and Computer Code

Copyright protection for software attaches automatically the moment you write code and save it. Federal law treats computer code as a literary work, so committing source to a repository, saving it to disk, or uploading it to a server creates a copyright interest without any paperwork.1Office of the Law Revision Counsel. 17 USC 102 – Subject Matter of Copyright In General The catch is that automatic protection is nearly useless on its own. You cannot file an infringement lawsuit without registering the work with the U.S. Copyright Office first, and if you wait too long to register, you forfeit the damages that make suing worth doing.

What Copyright Actually Protects in Your Code

Copyright protects the expression you wrote, not the ideas behind it. That line does most of the work in software disputes.

Both your source code and the compiled object code are protected. Federal law defines a computer program as instructions used in a computer to produce a result, and courts treat the human-readable text and the binary a machine executes as two forms of the same protected work.2Office of the Law Revision Counsel. 17 USC 101 – Definitions Copying your compiled application without permission infringes the copyright just as clearly as lifting the source.

Protection also reaches the creative architecture of the program, often called structure, sequence, and organization. If a competitor replicates the way your modules interact and the overall organizational logic without copying the literal text, that can still be infringement. Interface design gets similar treatment: the arrangement of icons, the layout of windows, and the artistic choices in your UI are part of the copyrighted work, even though a purely functional button on its own usually is not.

What Falls Outside

Ideas, procedures, processes, systems, and methods of operation are excluded from copyright no matter how they are expressed.3Office of the Law Revision Counsel. 17 USC 102 – Subject Matter of Copyright In General A sorting algorithm, a mathematical formula, or a data compression method cannot be owned through copyright. You own your particular implementation. For exclusive rights over a functional method itself, patent law is the relevant tool.

Two related doctrines narrow protection further. When there is only one practical way to code a function, expression is said to merge with the idea, and the code is not protected. Code dictated by hardware requirements, industry protocols, or operating system specifications is treated as standard to the field (courts borrow the literary term scènes à faire) and cannot be claimed either. If your code looks like everyone else’s because the platform demands it, nobody owns that similarity.

The lawful owner of a copy of a program also has statutory rights to copy it when doing so is an essential step in running it, and to keep an archival backup.4Office of the Law Revision Counsel. 17 USC 117 – Limitations on Exclusive Rights Computer Programs Loading a program into RAM creates a temporary copy, and the statute explicitly permits it. Archival copies must be destroyed if the owner loses rights to the original.

Fair use is a further defense to infringement, and it turns on four factors: the purpose of the use, the nature of the work, how much was taken, and the effect on the market.5Office of the Law Revision Counsel. 17 USC 107 – Limitations on Exclusive Rights Fair Use In 2021, the Supreme Court ruled 6-2 that Google’s use of roughly 11,500 lines of Java API declarations in Android was fair use, finding the copying transformative because it let programmers apply existing Java skills on a new platform.6Supreme Court of the United States. Google LLC v. Oracle America Inc. The Court did not resolve whether API declarations are copyrightable; it assumed they were and found the copying fair regardless.

How to Register a Software Copyright

Registration runs through the Copyright Office’s Electronic Copyright Office system, known as eCO. You file online using either the Single Application (one author who is also the sole claimant, one work, not made for hire) or the Standard Application, which covers everything else.7U.S. Copyright Office. Electronic Copyright Office eCO Frequently Asked Questions The form asks for the software’s title, every author who contributed, whether it was made for hire, the year completed, and the first publication date if applicable.8U.S. Copyright Office. Standard Application Help – Author

Work-made-for-hire status is one of the most consequential entries on the form. If an employee wrote the code within the scope of their job, the employer is the legal author, and the duration of protection is calculated differently.9U.S. Copyright Office. Circular 30 Works Made for Hire Getting this wrong on the application is difficult to fix later.

The Deposit and Redacting Trade Secrets

Every registration requires a deposit. For software, the standard deposit is the first and last 25 pages of source code in a readable format such as PDF.10U.S. Copyright Office. Circular 61 Copyright Registration of Computer Programs If the entire program is 50 pages or fewer, you submit the whole thing and tell the Office it represents the complete code.

You do not have to expose trade secrets to register. The Copyright Office allows redaction of sensitive portions of the 50-page deposit, provided the redacted material is less than half of the submission and the visible code still contains enough copyrightable expression for an examiner to evaluate.10U.S. Copyright Office. Circular 61 Copyright Registration of Computer Programs You must notify the Office in writing that the deposit contains trade secret material, and the Office will reject deposits that exceed the redaction limits.

Fees and Timing

The filing fee is $45 for a Single Application and $65 for a Standard Application.11U.S. Copyright Office. Fees Electronic filings that go through without correspondence from the Office average about 3.6 months, ranging from roughly 2 to over 5 months. Claims that need correspondence average about 5 months and can stretch past 8.12U.S. Copyright Office. Registration Processing Times FAQs The effective date of registration is the day the Office receives a complete application, deposit, and fee, even though the certificate arrives much later.

Why Registration Timing Decides What You Can Recover

Two separate rules interact here, and missing either one is expensive.

First, you cannot sue for infringement until the copyright is actually registered. Federal law requires registration before an infringement suit can proceed, and the Supreme Court confirmed in 2019 that a pending application is not enough. The Office has to act.13Office of the Law Revision Counsel. 17 USC 411 – Registration and Civil Infringement Actions Discover infringement without a registration in hand and you are stuck waiting months before you can file anything.

Second, and more punishing, is the deadline for preserving statutory damages and attorney’s fees. For unpublished software, you must register before the infringement begins. For published software, you must register within three months of the first publication date.14Office of the Law Revision Counsel. 17 USC 412 – Registration as Prerequisite to Certain Remedies for Infringement Miss either window and you can still sue for actual damages, but statutory damages and fee-shifting are gone.

What you lose is substantial. When statutory damages are available, a court can award between $750 and $30,000 per work infringed without the copyright owner proving a specific dollar loss.15Office of the Law Revision Counsel. 17 USC 504 – Remedies for Infringement Damages and Profits Willful infringement can push the ceiling to $150,000 per work. Innocent infringement can drop the floor to $200. The availability of attorney’s fees on top is what makes bringing a copyright case financially viable at all, because proving actual damages from software infringement is notoriously difficult and legal costs quickly exceed any modest recovery.

The practical rule is short. If you publish software, register within three months. If you keep proprietary code unpublished, register before someone can copy it. The $45 to $65 fee is trivial compared to what a late filing forfeits.

Who Owns the Code

Ownership does not always belong to the person who typed the code. When a developer writes software as part of their job duties, the employer holds the copyright from day one under work-made-for-hire rules.9U.S. Copyright Office. Circular 30 Works Made for Hire Independent contractors are the opposite: unless the contract specifically assigns copyright to the hiring party, the contractor keeps ownership. Companies that hire freelance developers without written assignment language regularly discover this the hard way.

Transferring copyright requires a written document signed by the owner or an authorized agent.16Office of the Law Revision Counsel. 17 USC 204 – Execution of Transfers of Copyright Ownership A verbal agreement or informal understanding does not transfer ownership. Small teams that build software collaboratively without formal assignments often end up with fragmented ownership across multiple contributors, which surfaces later when someone tries to sell the company or enforce the rights.

Open-source licenses work because of copyright, not around it. A developer who releases code under GPL, MIT, or another license is exercising rights as the copyright holder to set terms for use, modification, and distribution. Without underlying copyright ownership, the license has no teeth. If you contribute to an open-source project, the governing license controls how any derivative work you build must be handled.

Code Written With AI Assistance

The Copyright Office takes the position that copyright requires human authorship. Output generated by an AI tool without meaningful human creative control is not eligible for registration.17Federal Register. Copyright Registration Guidance Works Containing Material Generated by Artificial Intelligence The question the Office asks is whether a human actually formed the creative elements, or whether the AI determined the expressive output on its own.

Hybrid code with both human-written and AI-generated portions can be registered, but only for the human contributions. You must use the Standard Application, describe what the human author contributed, and disclaim the AI-generated material.18U.S. Copyright Office. Copyright and Artificial Intelligence Failing to disclose AI involvement can lead to the registration being canceled later.

Guidance in this area is still moving. The Copyright Office published additional guidance in January 2025 and a third installment in May 2025.18U.S. Copyright Office. Copyright and Artificial Intelligence If your codebase was substantially produced by an AI assistant with minimal human direction, the enforceable copyright in that output may be little to none.

How Long Protection Lasts

For software written by an individual, copyright lasts for the author’s life plus 70 years.19Office of the Law Revision Counsel. 17 USC 302 – Duration of Copyright Works Created on or After January 1 1978 For work made for hire, the term is 95 years from publication or 120 years from creation, whichever ends first. Most commercial software falls under the work-for-hire term because it is written by employees or under qualifying contracts. These durations far outlast the useful life of most code, but they matter when legacy programs are reused or when older applications become commercially relevant again.

Protection Outside the United States

Software copyrighted in the United States is automatically protected in every country that belongs to the Berne Convention, which covers essentially every major economy. No registration or other formality is required in the foreign country for the copyright to exist there.20World Intellectual Property Organization. Copyright Protection of Computer Software Scope and enforcement, however, follow each country’s own laws. Enforcing rights in a foreign court means working through that country’s legal system, and U.S. registration remains useful abroad because it is strong evidence of ownership and creation date.