What a code similarity score means

The most common question about any code checker is "what percentage is plagiarism?" The honest answer is that no percentage is. A score tells you where to look. This page explains what the number measures, why 90% can be innocent and 20% can be a copy, and what to check before you act on either.

Checks every file against classmates, the web and AI, in 65+ languages.

Assignment 4: inventory tracker 38 submissions, 6 shown
Example
SubmissionPeerWebAIWhy it stands out
Student 12 93% 4% 6% Matches Student 29, including the same off-by-one bug
Student 29 91% 4% 8% Matches Student 12
Student 3 12% 88% 5% Matches a public repository from an earlier term
Student 21 34% 2% 86% No source found. Flagged as likely AI-written
Student 8 41% 6% 9% Shared lines are the file-loading code from the handout
Student 17 18% 3% 4% Nothing to review

Three different problems and three different columns. A single combined number would hide which one you are looking at. Student 8 is the instructive row: 41% looks like something, and it is entirely code the class was given.

What a similarity score measures

A similarity score is the share of a submission that lines up with something else: another student's work, a page on the web. Good checkers compare structure, not text, so the names, spacing and comments can all differ while the score stays high.

Three things follow from that definition, and each one trips people up.

  • It is a measurement, not a verdict. It says the code is alike. It does not say why.
  • It is relative to length. Ten shared lines are 80% of a twelve-line file and 3% of a three-hundred-line one.
  • It has a direction. A short file copied whole into a long one scores high from the short side and low from the long side. Check both.

Why no threshold works

Institutions often want a line: above 70% is a case, below is not. Any line fails in both directions.

88%
High score, no copying There is one sensible way to write this
Example
Student 5fib.py
1def fib(n):2 a, b = 0, 13 for _ in range(n):4 a, b = b, a + b5 return a
Student 30fibonacci.py
1def fibonacci(num):2 x, y = 0, 13 for i in range(num):4 x, y = y, x + y5 return x
Classmates: 1 matchProgram length: 5 linesShared mistakes: none

Structurally identical, and proof of nothing. This is the standard iterative Fibonacci, and a class of forty will hand in a dozen of them. A five-line textbook function is the weakest evidence a score can rest on.

That is the false positive. The false negative is the mirror image: a student writes most of a project and lifts the one function that was the point of the assignment. The overall score is 15%. A threshold would wave it through.

A threshold is still useful for one thing, which is deciding what to open first. Codequiry sorts results by score and treats 70% and above as flagged for that reason. It is a reading order, not a finding.

Five questions to ask about any score

  1. What are the shared lines? Open the match. If they are imports, a main function, accessors or the handout's own code, the score is noise. If they are the logic the assignment was about, keep going.
  2. How long is the program? Under about thirty lines, honest submissions overlap heavily. The longer the shared stretch, the harder it is to explain as coincidence.
  3. How much freedom did the task leave? "Implement binary search" has one answer. "Build an inventory tracker" has hundreds. The same score means much more on the second.
  4. What does the rest of the class look like? If everyone scores 55% against everyone, the specification is doing the matching. One pair at 90% above a class at 25% is an outlier, and outliers are what you are looking for.
  5. Is anything shared that should not be? The same bug, the same unused variable, the same typo in a string, the same oddly specific constant. One of these outweighs thirty points of score.

See the lines behind the score

Every match opens the two files side by side with the shared lines marked.

Peer, web and AI scores answer different questions

ScoreWhat it compares againstWhat a high value suggestsWhat it cannot tell you
PeerOther submissions in the class and earlier termsTwo students share codeWho wrote it first
WebPublic code: GitHub, Stack Overflow, the indexed webThe code exists online, with a link to whereAnything about private sources
AINo source. It looks at how the code is writtenThe code reads like AI output, with reasons listedCertainty. It is a likelihood, not a match

The first two are similarity scores in the strict sense: there is another file, and you can read it. The AI score is a different kind of number, because there is nothing to put beside the submission. Treat it as the weakest of the three and never as the only basis for a decision. More on that in detecting AI-written code.

What strong evidence looks like

If a case goes to a committee, the percentage will not carry it. These will:

  • Shared mistakes. Two programs that fail the same test in the same way, for the same reason.
  • Shared leftovers. Dead code, a commented-out experiment, a debug print, a note to self.
  • Shared oddities. An unusual variable name, a misspelling, an unnecessary step that both programs take.
  • A long unbroken match in the part of the assignment that left the most room for choice.
  • A student who cannot explain or change the code. This is the one that settles it, and it works the other way too: a student who can walk through every line and modify it on the spot has usually written it.

The step-by-step version is in how to detect code plagiarism. Language-specific notes: Python and Java.

Frequently asked questions

What code similarity percentage counts as plagiarism?

No percentage does on its own. A score measures how much of one submission lines up with another source. Whether that is copying depends on what the shared lines are, how long the program is, how constrained the task was, and how the rest of the class scored.

Is 50% code similarity bad?

It depends on the assignment. On a short exercise with one obvious solution, half the class can sit at 50% honestly. On a 400-line open-ended project, 50% shared with one other student is a lot and worth opening.

Can two students get a high score without copying?

Yes. Short programs, textbook algorithms, starter code and a tightly specified design all produce matches between students who never spoke. That is why the matched lines matter more than the number.

Can copied code get a low score?

Yes. A student who copies one key function into an otherwise original project has a low overall score and a real problem. Sort by score to find the obvious cases, then look at what the smaller matches are made of.

Why does the same pair show two different percentages?

Similarity is measured from each side. If a 40-line file is copied whole into a 200-line file, nearly all of the short file matches and only a fifth of the long one does.

What should I do with a high score?

Open the match and read the shared lines. Discount anything every student was given. Look for things that are hard to share by accident, such as the same bug or the same unused code. Then ask the student to explain or modify the code before deciding anything.

Read the match, not only the number

Peer, web and AI scores for every submission, each with the evidence behind it.

Get started Every plan includes Deep Scans.