Copyright Engine
  • Monitoring
  • DMCA Takedowns
LoginStart my copyright
Copyright Engine

Any questions?

We're available Monday through Friday from 9am - 6pm CST

Product

  • Registration
  • Monitoring
  • DMCA Takedowns

Company

  • About
  • Contact

Resources

  • Blog
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • Legal Services Agreement

Copyright Engine provides information and software only. Use of Copyright Engine is subject to our Terms of Service, and Privacy Policy.

The Applicable Fees will be based on the specifics of your application but generally range from $44 and $125 and will be charged and collected at checkout.

  1. Home|
  2. Resource Center|
  3. Software and digital|
  4. Trade Secret vs. Copyright for Source Code

Trade Secret vs. Copyright for Source Code

Written byCopyright Engine

Published on November 20, 2026

Estimated Read Time: 6 minutes

Table of Contents

Is source code a trade secret or copyrighted?What does a trade secret protect that copyright does not?Where copyright winsCopyright vs trade secret software: how they compareCan source code be both trade secret and copyright protected?Do you lose trade secret status if you file a copyright deposit?Which protection should a startup use for its code?Your next step: sort your code into two buckets
Trade Secret vs. Copyright for Source Code

Table of Contents

Is source code a trade secret or copyrighted?What does a trade secret protect that copyright does not?Where copyright winsCopyright vs trade secret software: how they compareCan source code be both trade secret and copyright protected?Do you lose trade secret status if you file a copyright deposit?Which protection should a startup use for its code?Your next step: sort your code into two buckets

Key Takeaways

  • Copyright attaches automatically to your code, but a trade secret only exists while you actively keep the information confidential.
  • Redact trade secret portions of your source code before filing a copyright deposit, since deposits can be publicly inspected.
  • Register copyright for each major release you distribute so you can sue copiers in federal court.
  • Use NDAs, limited repo access, and signed IP assignments to show reasonable secrecy efforts.
  • Decide which code is public before choosing an open source license, because published code can't be a trade secret.

Wondering about trade secret or copyright for code? Copyright protects what you wrote, trade secret law protects what stays confidential, and most software teams should use both.

Most developers should use both. Copyright protects the written expression of your code automatically, while trade secret law protects whatever you keep confidential. The trade secret or copyright for code question is rarely either/or: copyright covers the text you wrote, and secrecy covers the logic and know-how you never publish.

The two protections work in different ways, and that's where people get tripped up. Copyright is a legal right that exists the moment code is fixed in a file. Trade secret protection is a status you earn and keep through your own behavior, and you can lose it by being careless.

This guide compares what each one covers, how secrecy works under both, and how a startup can combine them without undercutting itself.

Is source code a trade secret or copyrighted?

Both can be true at once, but they attach for different reasons. Under 17 U.S.C. § 102, source code is a literary work, so copyright applies automatically to original code. Nobody has to register anything for that to happen. If you're unsure how much registration adds, the guide on whether you need to register a copyright to be protected covers it.

So is source code a trade secret? Only if it qualifies. Trade secret law, mainly the federal Defend Trade Secrets Act and state versions of the Uniform Trade Secrets Act, asks three things:

  • The information has economic value because it isn't generally known.
  • You take reasonable steps to keep it secret.
  • It isn't something others can easily work out on their own.

Code sitting in a public GitHub repo fails the second test. Code on a locked-down server, shared only with NDA-bound staff, usually passes.

What does a trade secret protect that copyright does not?

Copyright protects expression, not ideas. It stops someone from copying your actual code, but it doesn't stop them from learning how your system works and writing their own version. Section 102(b) of the Copyright Act spells out that ideas, procedures, processes and methods of operation aren't covered.

Trade secret law fills that gap. It can protect:

  • The algorithms and architecture behind your product
  • Training data, model weights, and tuning parameters
  • Build scripts, internal tools, and deployment know-how
  • Unreleased features and roadmaps

The catch is that a trade secret protects against misappropriation, meaning theft, breach of an NDA, or other improper means. It doesn't stop a competitor who reverse-engineers your shipped product fairly, or who independently builds the same thing.

Where copyright wins

Copyright has no secrecy requirement, so it works for code you ship, publish, or sell. It also gives you something trade secrets never will: the right to sue anyone who copies your code, even if they got it legally. That makes it the stronger tool against piracy of distributed software. And it lasts a long time. For work you wrote yourself, that's your life plus 70 years.

Copyright vs trade secret software: how they compare

Here's the side-by-side view.

FeatureCopyrightTrade secret
How you get itAutomatic once code is writtenOnly if the code stays secret and has value
What it coversThe code text and structure you wroteConfidential logic, data, and methods
Stops independent creation?No, but stops copyingNo
Works for shipped software?YesOnly for the parts users can't see
RegistrationOptional, but needed before suing in the U.S.None exists
DurationDecadesAs long as secrecy holds

Notice the pattern. Copyright is durable and public-facing. Trade secrets are potentially unlimited in time but fragile. One leak, one careless contractor, one unprotected upload, and the status can vanish for good.

Can source code be both trade secret and copyright protected?

Yes, and for most commercial software that's the sensible default. Registering a copyright doesn't kill your trade secret, as long as you handle the deposit correctly.

When you register, the Copyright Office requires a copy of the work. For software, that normally means the first and last 25 pages of source code. But if the code contains trade secrets, the Office allows you to redact those portions or submit alternative formats. Deposited material becomes available for public inspection at the Office, so redaction is how you keep secrets out of it. The exact rules are in the walkthrough on submitting source code as a deposit with trade secret redaction, so follow those before you file.

Do you lose trade secret status if you file a copyright deposit?

Not automatically. Filing a properly redacted deposit is a recognized way to register while preserving secrecy. Filing an unredacted deposit of your crown-jewel logic is the mistake. A court could treat that as a failure to take reasonable steps.

Copyright registration costs $65 for a Standard Application, or $45 for a Single Application if you're the sole author and the work isn't made for hire. Copyright Engine prepares and files the application for you. For the filing process itself, the guide on how to copyright source code has the full steps.

Which protection should a startup use for its code?

Use both, but give them different jobs.

  1. Register the copyright for each major release you distribute, with trade secret portions redacted. This gives you the ability to sue copiers and claim statutory damages in the right cases.
  2. Treat the core as a trade secret. Keep the most valuable logic, models, and data out of anything public, and don't ship it in readable form.
  3. Control access. Use NDAs, least-privilege repo permissions, and exit procedures for departing engineers.
  4. Sign IP assignments so the company actually owns what contractors and employees write.
  5. Mark your files. Confidentiality notices on internal code help show you treated it as secret.

If you're also weighing patents, that's its own tradeoff, covered in the comparison of copyright vs patent for software. Note that a patent requires public disclosure, which is the opposite of keeping something secret.

A word of caution on open source. If you publish code under a permissive license, you can't call that same code a trade secret. Decide which pieces are public before you release anything.

This is legal information, not legal advice. For disputes, trade secret litigation, or tricky ownership situations, talk to an IP attorney.

Your next step: sort your code into two buckets

Open your repo and list what ships to customers, what stays internal, and what's genuinely novel. Anything you distribute is a candidate for copyright registration. Anything that gives you an edge and stays private needs access controls and a redaction plan before you ever submit a deposit. Do that sorting this week, then register your next release with the secret parts removed from the deposit.

Sources

  1. U.S. Copyright Office. Registration portal.
  2. U.S. Copyright Office. Copyright Law of the United States (Title 17).
Back to the article

Frequently asked questions

No, registration itself doesn't publish your code. The Copyright Office keeps your deposit, and it can be inspected by the public under certain conditions. That's why developers with confidential logic redact those sections or use the Office's special deposit options for trade secret material before submitting.

Often yes. Trade secret law protects against improper means like theft or breach of contract, not fair reverse engineering of a product someone lawfully bought. Your license terms may restrict it by contract, and copyright still prevents copying your code directly, but the underlying ideas stay open to study.

No. Unlike copyrights, trade secrets have no registration system. Your protection comes from the information's value and from the steps you take to keep it confidential, such as NDAs, access controls, and employee policies. If you ever sue, you'll need to prove those steps with evidence.

If it leaks through no fault of yours, you may still have claims against whoever took it improperly. But once the code is widely available, it generally stops qualifying as secret. Copyright remains in place, so you can still use takedown notices and infringement claims against copies.

Yes. Anyone with code access is a possible leak point. Written confidentiality agreements and IP assignments show you took reasonable steps and confirm who owns the work. Without them, a court may find you didn't protect the information well enough to call it a trade secret.

Keep reading

Do You Need to Register a Copyright to Be Protected?

Do you need to register copyright to be protected? No, your work is covered the moment you create it, but automatic protection has sharp limits. Here's when…

How to Submit Source Code as a Copyright Deposit (Trade Secret Redaction)

Learn how to redact source code for copyright deposit: which pages the Copyright Office wants, how to black out trade secrets properly, and how to upload the…

How to Copyright Source Code

Want to copyright my source code? Protection is automatic once you write it down, but registering with the Copyright Office gives you proof and the right to…