Google LLC v. Oracle America, Inc.
The 2021 case that held Google's copying of Java code for Android was a fair use
The ruleGoogle's copying of about 11,500 lines of code from the Java SE interface, taking only what was needed to let programmers use their skills in a new smartphone platform, was a fair use as a matter of law. The Court assumed without deciding that the code could be copyrighted.
Still good law?Yes. Still the leading fair use case on software. The Court did not decide whether this kind of code is copyrightable, and said it did not overturn or modify its earlier fair use cases. Andy Warhol Foundation v. Goldsmith (2023) later cited it on how fair use depends on context. Checked November 22, 2026.
Not legal advice. This page is general information, not legal advice. Anyone facing a real decision should talk to a lawyer licensed in their state; laws change, and exceptions can apply.
The question
Oracle America owns the copyright in Java SE, a software platform built on the Java programming language. In 2005 Google acquired Android and wanted the many programmers who already knew Java to be able to write apps for its new smartphone platform. Google copied about 11,500 lines of code from the Java SE application programming interface (API), a tool that lets programmers call up prewritten computing tasks with simple commands, and paired them with code it wrote itself.
Oracle sued. The Federal Circuit first held that the copied lines were copyrightable. A jury then found that the copying was a fair use, but the Federal Circuit reversed, holding that it was not a fair use as a matter of law. The Supreme Court took both questions.
The cases before it
| Case | What it held |
|---|---|
| Campbell v. Acuff-Rose Music, Inc. (1994) | A commercial parody may be a fair use. A new work that is "transformative," adding new expression, meaning or message, counts in its favor, and the four statutory factors are weighed together case by case. |
What the Court held
The Court reversed, 6–2, in an opinion by Justice Breyer. Justice Barrett took no part.
What it skipped. The Court assumed for argument's sake that the copied lines could be copyrighted and decided only fair use.
Who decides. Fair use mixes fact and law. Judges defer to a jury's findings of underlying fact, but the ultimate question is one of law, which judges decide fresh.
The four factors. All weighed for Google:
- Nature of the work. The lines are part of an interface, bound up with uncopyrightable ideas, and their value comes largely from programmers' investment in learning the system.
- Purpose. The use was transformative, creating a different system for a different environment, smartphones.
- Amount. The 11,500 lines were about 0.4 percent of an API of 2.86 million lines, and the copying was tied to that purpose.
- Market effect. Android was not a market substitute for Java SE, Oracle would benefit from its interface reaching a different market, and enforcing the copyright risked harm to creativity.
The Court said it did not overturn or modify its earlier fair use cases.
The dissent
Justice Thomas, joined by Justice Alito, dissented. He argued that the majority bypassed the question whether the code is protected, that Oracle's code is copyrightable, and that Google's use of it was not fair.
How later cases have used it
In Andy Warhol Foundation v. Goldsmith (2023) the Court cited Google for the point that fair use is flexible and its application varies with context. It said the first factor asks whether a use has a purpose or character different from the original, weighed against commercialism, and found that the factor did not favor the foundation's licensing of a Warhol image to a magazine.
Why it matters
The ruling gives software developers more room to reimplement an interface that other programmers already know. It is narrow in two ways: it rests on the facts of this copying, and it leaves open whether such code can be copyrighted at all. Because fair use is decided one use at a time, the same copying can be fair in one setting and not in another.
How later cases have used it
| Case | How it used this one |
|---|---|
| Andy Warhol Foundation for the Visual Arts, Inc. v. Goldsmith (2023) | Decided 7–2 that the first fair use factor did not favor the foundation's commercial licensing of a Warhol silkscreen based on a photograph. The Court cited Google for the idea that fair use is flexible and depends on context. |
Related entries
- Fair useThe rule that allows limited use of copyrighted work without permission
- CopyrightThe legal right to control copies and uses of a creative work
- Copyright infringementUsing a copyrighted work in a way reserved to its owner, without permission
- PatentA government grant of exclusive rights in an invention for a limited time
- Trade secretValuable business information that is protected because it is kept secret
- PrecedentAn earlier court decision that later courts follow