# 校验位

校验位是附加在一个数字末尾的单个数字，由其余数字按固定公式计算得出，使得常见的抄写错误会把该数字变成一个无效号码，而不是变成另一个有效号码。最著名的例子是国际标准书号（ISBN）的最后一位数字：它是对前面各位数字的校验和，其选取方式使得单个数字打错、或大多数相邻两位数字互换，都会产生一个无效号码，而不是另一本有效图书的号码。<sup>[1](https://ottobib.com/isbn-converter)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 检测转录错误：单个数字打错或相邻两位数字互换——最常见的人为错误——通常会使号码无法通过验证<sup>[1](https://ottobib.com/isbn-converter)</sup> |
| ISBN-13 规则 | 将前 12 位数字交替乘以 1 和 3，求和，然后选取使总和为 10 的倍数的校验位<sup>[1](https://ottobib.com/isbn-converter)</sup> |
| ISBN-10 规则 | 将九位数字分别乘以 10、9、8、…、2；校验位使总和为 11 的倍数，字母 X 代表校验值 10<sup>[1](https://ottobib.com/isbn-converter)</sup><sup> • </sup><sup>[2](https://www.isbn.org/faqs_general_questions)</sup> |
| 格式变化 | 截至 2006 年 12 月底，ISBN 为 10 位；自 2007 年 1 月 1 日起，一律为 13 位<sup>[3](https://www.isbn-international.org/index.php/content/what-isbn/10)</sup> |
| 已知弱点 | ISBN-13 无法检测某些相邻数字对的互换，具体为 (0,5)、(1,6)、(2,7)、(3,8) 和 (4,9)，无论顺序如何<sup>[4](https://www.ece.unb.ca/cgi-bin/tervo/isbn13.pl)</sup> |
| 验证能证明什么 | 通过校验位检测可以发现许多常见的抄写或键入错误，但并不保证抄写无误；它既不保证该 ISBN 确实已被分配，也不保证存在对应号码的图书<sup>[5](https://isbndecoder.com/how-isbn-check-digit-works)</sup><sup> • </sup><sup>[13](https://www.iso.org/standard/31531.html)</sup> |

## ISBN-13 校验位的工作原理

校验位是 13 位 ISBN 的第五个也是最后一个元素，使用模 10 算法计算。<sup>[6](https://www.iso.org/cms/%20render/live/en/sites/isoorg/contents/data/standard/06/54/65483.html?browse=tc)</sup><sup> • </sup><sup>[7](https://www.iteh.eu/catalog/standards/iso/8b88bfec-50fc-47b9-b2bb-798ea8e7f817/iso-2108-2005)</sup> 前十二位数字交替乘以 1 和 3 后相加；校验位就是使总和达到下一个 10 的倍数的那个数字。等价地说，全部 13 位数字的加权和（校验位权重为 1）必须能被 10 整除。<sup>[1](https://ottobib.com/isbn-converter)</sup><sup> • </sup><sup>[8](https://automatalabs.ca/blog/isbn-check-digit-explained)</sup>

以 978-0-226-45811-3 为例，前十二位数字的加权和为 9·1 + 7·3 + 8·1 + 0·3 + 2·1 + 2·3 + 6·1 + 4·3 + 5·1 + 8·3 + 1·1 + 1·3 = 97；加上校验位 3 得 100，是 10 的倍数，因此校验位为 3。<sup>[1](https://ottobib.com/isbn-converter)</sup> 由于模为 10，ISBN-13 的校验位始终是 0 到 9 中的一个数字；新系统中永远不会出现字母 X。<sup>[9](https://www.cambridge.org/core/books/abs/butchers-copyediting/how-to-check-that-an-isbn-is-correct/3E7E1615DA2525BF7BD24C8534B88FB9)</sup><sup> • </sup><sup>[5](https://isbndecoder.com/how-isbn-check-digit-works)</sup>

## ISBN-10 校验位的工作原理

较早的 10 位 ISBN 使用模 11 方案，权重因子从 10 递减到 1：九位信息数字分别乘以 10、9、8、…、2，校验位使总和为 11 的倍数。<sup>[1](https://ottobib.com/isbn-converter)</sup><sup> • </sup><sup>[2](https://www.isbn.org/faqs_general_questions)</sup> 十一个可能的余数对应仅仅十个数字，这就是 ISBN-10 中有字母 X 的原因：当校验位本应是 10 时，用罗马数字 X 代替。<sup>[1](https://ottobib.com/isbn-converter)</sup><sup> • </sup><sup>[2](https://www.isbn.org/faqs_general_questions)</sup> 因此，旧式 10 位 ISBN 的校验位始终是 1 到 9 中的一个数字或 X（意为 10）。<sup>[9](https://www.cambridge.org/core/books/abs/butchers-copyediting/how-to-check-that-an-isbn-is-correct/3E7E1615DA2525BF7BD24C8534B88FB9)</sup>

当系统于 2007 年 1 月 1 日转换为 13 位时，转换并不是简单地在 10 位号码前加三位数字；算法常常会改变最后一位，因此校验位必须重新计算。<sup>[10](https://www.isbn.org/about_ISBN_standard)</sup> 对于 978 前缀范围内的图书，两种格式可以互相转换：去掉开头的 978 并重新计算校验位即可；而较新的 979 前缀下的图书则没有对应的 ISBN-10。<sup>[11](https://isbndecoder.com/)</sup>

## 错误检测及其局限

两种 ISBN 算法都旨在捕捉单个数字的转录错误——改变任意一位数字都会产生无效的校验和——以及相邻换位——即两个相邻数字互换。<sup>[5](https://isbndecoder.com/how-isbn-check-digit-works)</sup> ISBN-13 方案有一个特定的盲点：交换相邻数字对 (0,5)、(1,6)、(2,7)、(3,8) 或 (4,9)，无论顺序如何，都无法检测到，因为这些数字对相差 5，而交替的 1 和 3 权重使加权和保持不变。<sup>[4](https://www.ece.unb.ca/cgi-bin/tervo/isbn13.pl)</sup> 新不伦瑞克大学的教学材料指出，虽然 13 位系统允许更多的图书，但由于上述盲点，它作为错误控制算法更弱。<sup>[4](https://www.ece.unb.ca/cgi-bin/tervo/isbn13.pl)</sup>

校验位验证通过只表明号码具有一致性，并非合法性的证明。它不保证该 ISBN 确实已被分配，也不保证存在对应号码的图书；验证是否存在需要借助书目数据库，如[开放图书馆](https://www.edgepedia.org/zh/open-library)或书店目录。<sup>[5](https://isbndecoder.com/how-isbn-check-digit-works)</sup>

## 在 ISBN 中的位置

校验位是 13 位 ISBN 的五个元素之一，各元素之间用空格或连字符分隔：三位前缀元素，目前仅为 978 或 979；1 到 5 位的注册组元素，标识国家、地区或语言区域；最多 7 位的出版者元素，标识出版社或出版品牌；最多 6 位的出版物元素，标识具体版本和格式；以及校验位。<sup>[3](https://www.isbn-international.org/index.php/content/what-isbn/10)</sup> 该标准为 ISO 2108，其第五版 ISO 2108:2017 于 2023 年最后一次审查并确认。<sup>[6](https://www.iso.org/cms/%20render/live/en/sites/isoorg/contents/data/standard/06/54/65483.html?browse=tc)</sup>

这类校验位方案是一类简单的错误检测码。维尔霍夫（Verhoeff）首次给出了十进制错误检测码的实例，其单个校验位能防范所有单个数字错误和所有相邻换位，并能检测超过 95% 的双重错误，这一保证强于 ISBN 方案所提供的。<sup>[12](https://arxiv.org/abs/2501.06641)</sup><sup> • </sup><sup>[14](https://github.com/SNOMED-Documents/snomed-release-file-specification/blob/main/6%20snomed-ct-identifiers/6.4%20check-digit/6.4.2-check-digit-computation.md)</sup>

## References

1. [ISBN Converter and Check Digit Validator (ISBN-10 ↔ ISBN-13), OttoBib](https://ottobib.com/isbn-converter)
2. [FAQs: General Questions, ISBN.org](https://www.isbn.org/faqs_general_questions)
3. [What is an ISBN?, International ISBN Agency](https://www.isbn-international.org/index.php/content/what-isbn/10)
4. [ISBN-13 Error Detection Tool, ECE4253, University of New Brunswick](https://www.ece.unb.ca/cgi-bin/tervo/isbn13.pl)
5. [How the ISBN Check Digit Works — MOD-11 and MOD-10 Explained, ISBNDecoder.com](https://isbndecoder.com/how-isbn-check-digit-works)
6. [ISO 2108:2017 — Information and documentation — International Standard Book Number (ISBN), ISO](https://www.iso.org/cms/%20render/live/en/sites/isoorg/contents/data/standard/06/54/65483.html?browse=tc)
7. [ISO 2108:2005 standard text (check digit clause 4.6), iTeh](https://www.iteh.eu/catalog/standards/iso/8b88bfec-50fc-47b9-b2bb-798ea8e7f817/iso-2108-2005)
8. [ISBN Check Digit Explained: How to Validate an ISBN-13, Automata Labs](https://automatalabs.ca/blog/isbn-check-digit-explained)
9. [How to check that an ISBN is correct, Butcher's Copy-editing, Cambridge University Press](https://www.cambridge.org/core/books/abs/butchers-copyediting/how-to-check-that-an-isbn-is-correct/3E7E1615DA2525BF7BD24C8534B88FB9)
10. [About the ISBN Standard, ISBN.org](https://www.isbn.org/about_ISBN_standard)
11. [Free ISBN Decoder & Validator, ISBNDecoder.com](https://isbndecoder.com/)
12. [A Permutation-Free Length 3 Decimal Check Digit Code, arXiv](https://arxiv.org/abs/2501.06641)
13. [iso.org](https://www.iso.org/standard/31531.html)
14. [snomed-release-file-specification/6 snomed-ct-identifiers/6.4 check-digit/6.4.2-check-digit-computation.md at main · SNOMED-Documents/snomed-release-file-specification](https://github.com/SNOMED-Documents/snomed-release-file-specification/blob/main/6%20snomed-ct-identifiers/6.4%20check-digit/6.4.2-check-digit-computation.md)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 25, 2026 · Edited: Sep 30, 2026; Oct 25, 2026 · Last review: Oct 25, 2026*

Topic: 社会与历史 › 广播电视与新闻业 › 期刊与出版 › Publishing and publishing houses › Publishing industry bodies and trade infrastructure › ISBN, ISSN, and publisher-code systems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/check-digit

English original: https://www.edgepedia.org/check-digit
