What is Checksum & How it Works?
Updated on Jun 30, 2026 | 9 min read | 9.95K+ views
Share:
All courses
Certifications
More
Updated on Jun 30, 2026 | 9 min read | 9.95K+ views
Share:
Table of Contents
A checksum is a lightweight error-detection value generated from a block of data to verify its integrity during transmission or storage. By comparing the checksum calculated before and after data transfer, systems can detect whether the data has been accidentally corrupted. While checksums help identify unexpected changes, they are not designed to protect against deliberate tampering or provide cryptographic security.
This blog explains what a checksum is, how it works, the different checksum algorithms, step-by-step error detection, practical examples, and common applications in networking, file verification, and data storage.
Build practical expertise in agentic AI with upGrad's Agentic AI Course. Learn to design AI agents, orchestrate multi-agent workflows, integrate AI tools, and solve real-world business problems through hands-on projects and expert-led learning.
Popular upGrad Programs
Checksum is a technique used to determine the authenticity of received data and to detect whether there was an error in transmission. It is an error detection algorithm that adjoins redundant bits in a message for detecting errors and is capable of working on any message length. Before transmission, every piece of data or file might be issued a checksum value after executing a cryptographic hash function.
Checksums function by giving the party on the receiving end information about the transmission to ensure that the complete range of data is transmitted. The checksum value is often a long string of letters and numbers that operate as a fingerprint for a file or set of files to identify the number of bits contained in the transmission.
Checksums are frequently called hash values or unique numbers generated by cryptographic techniques and work like digital data fingerprints. Creating and comparing checksums is sometimes called ‘fixity checking’. Checksums are used to test data integrity and discover data corruption problems. Checksum functions are linked to hash functions, fingerprints, randomisation, and cryptographic hash functions.
Here are the reasons to use checksum:
Recommended Courses to upskill
Explore Our Popular Courses for Career Progression
To understand what is checksum, it's essential to explore the different algorithms that help detect errors in data transmissions and verify data integrity. Here are some common types:
The checksum approach requires a checksum generator on the sender's side and a checksum checker on the receiver's side. To understand what is checksum, it is essential to know how it functions.
The process entails splitting the data into fixed-sized segments and employing a 1’s complement to find the sum of these segments. The calculated sum is then transmitted simultaneously with the data to the addressee.
At the receiver’s end, the same operation is repeated, and if all zeroes are reached in the total, the data is legitimate. If the result is non-zero, it signals the data comprises a mistake, and the receiver rejects it.
The checksum identifies all the faults involving an odd number of bits and the mistakes involving an even number of bits. The main problem of the checksum technique is that the error goes unnoticed if one or more bits of a subunit are erroneous.
The checksum error-detection method involves the following steps:
The sender side performs the checksum procedure by dividing the original data into blocks, adding them, complementing the result, and getting the checksum. The checksum is subsequently added to the original data bit and data transmission resumes.
To understand what is checksum, it is important to explore the steps involved in its error-detection approach on the sender’s side:
Here are the step-by-step instructions for checksum at the receiver side:
Develop practical expertise in data science, generative AI, and agentic AI with upGrad's industry-focused programs. Build real-world skills through hands-on projects, expert mentorship, and practical applications designed for the next generation of AI-driven careers.
Here is an example of using checksum for error detection:
Assume we wish to send the following 8-bit data: 11010011. We may employ a simple checksum approach to detect flaws in this message.
This example demonstrates how to use a checksum to detect problems in data transport. Upper-layer protocols employ checksums as a reliable error detection approach.
Here is a step-by-step example of checksum error detection at the sender side:
Let’s take an example to illustrate these steps:
The sender will then transfer the original data with the checksum to the recipient. The receiver will conduct the identical processes to produce the checksum and compare it with the received checksum to discover any flaws in the data transmission.
Note: This is only a simplified example of checksum error detection stages. In practice, more advanced algorithms and error detection methods may be used.
Here are the in-depth directions for the receiver side of a solved checksum error detection example:
Upper-layer protocols employ this form of error detection, deemed more trustworthy than other methods such as LRC, VRC, and CRC. Checksum error detection entails computing a number known as the checksum to determine whether or not the data transported from the sender to the receiver has been corrupted. The transmitter uses the checksum generator to check for mistakes, while the receiver uses the checksum checker. The checksum detects any faults involving an odd number of bits and errors involving an even number of bits.
Subscribe to upGrad's Newsletter
Join thousands of learners who receive useful tips
A checksum is one of the simplest and most widely used techniques for verifying data integrity during transmission and storage. By generating a small verification value from the original data, it helps detect accidental errors before corrupted information is processed or accepted by the receiving system.
Understanding how checksum algorithms work, their strengths, and their limitations gives you a solid foundation in computer networking and data communication. As you continue learning, explore related concepts such as CRC, cryptographic hash functions, and error correction techniques to deepen your knowledge of reliable and secure data transmission.
In data engineering, a checksum is used to ensure data integrity when processing large datasets. It helps detect corruption or unintended modifications during data transfer, storage, or ETL (Extract, Transform, Load) processes.
A checksum is important because it verifies data integrity and detects errors in transmission or storage. It ensures that the received data matches the original, preventing corruption and maintaining system reliability.
A checksum algorithm is a mathematical function that generates a fixed-length value from a data block. Examples include CRC (Cyclic Redundancy Check), MD5, and SHA algorithms, which help in error detection and validation.
A checksum is a general method for verifying data integrity, while CRC (Cyclic Redundancy Check) is a more advanced type of checksum that uses polynomial division to detect errors in data transmission. CRC is commonly used in network protocols and file verification.
A checksum is a value computed from a data block to verify its integrity. The sender calculates the checksum and sends it along with the data. The receiver recalculates it and compares it with the original checksum. If they match, the data is intact; otherwise, errors are detected.
A checksum detects errors by comparing the computed checksum value at both sender and receiver ends. If the values differ, it indicates data corruption, prompting retransmission or error correction mechanisms.
Internet checksum is used in networking protocols like TCP, UDP, and IP to ensure data integrity. It adds up all the data bytes, inverts the sum, and sends it along with the data. The receiver performs the same calculation and checks for mismatches to detect errors.
In SQL, checksums are used to detect changes in database records. Functions like CHECKSUM() and BINARY_CHECKSUM() generate hash values for data rows, allowing quick comparisons to identify modifications or inconsistencies in the database.
A checksum is primarily used for error detection in data transmission, while a hash function is designed for data integrity verification and cryptographic security. Hash functions like SHA-256 produce unique outputs, whereas checksums focus on quick error detection.
No, a checksum can only detect errors, not correct them. If an error is found, the system may request retransmission or use additional error correction techniques like ECC (Error Correction Code) to fix the issue.
Yes, checksums are used in cybersecurity to verify file integrity, detect tampering, and ensure secure software distribution. They help confirm that files have not been altered by comparing the computed checksum with the expected value.
983 articles published
Pavan Vadapalli is the Director of Engineering , bringing over 18 years of experience in software engineering, technology leadership, and startup innovation. Holding a B.Tech and an MBA from the India...
Get Free Consultation
By submitting, I accept the T&C and
Privacy Policy
Top Resources