GCSE · Computer Science · OCR · Spec J277
Data capacity calculations
Storage numbers balloon fast, so we convert them. Good news: every conversion runs on two numbers, 8 and 1000, plus one question. Up or down?
Computer Science · Data size
Up or down? 8 or 1000?
Every conversion is two quick decisions. First: are you heading to a bigger unit or a smaller one? Then: is the step between bits and bytes, or between byte multiples? Walk each route and see where it lands.
Direction → Which step
4 kinds of conversion.
Longer conversions just chain these steps together, one at a time. We use the 1000-based multiples throughout.
Computer Science · Algorithms
Trace table — dry run the code
Sound recordings are sized in bits first. Press Start and step through one: made-up numbers, real method.
Ready when you are — step through one line at a time.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Two numbers, 8 and 1000, unlock every conversion between bits, bytes and the bigger units.
What you need to know
- A bit is the smallest unit of data: a zero or a one. A byte is a group of 8 bits.
- Data sizes get unmanageable very quickly, so we convert them into more sensible units.
- Two numbers do the work: 8 bits in a byte, and 1000 bytes in a kilobyte.
Have a goMaya says very confidently that 8 bits make a kilobyte. What should you tell her?
8 bits make a byte. It takes 1000 bytes to make a kilobyte.
The two numbers have different jobs: 8 links bits to bytes, and 1000 links a byte to a kilobyte.
- Above the kilobyte, each unit is 1000 of the one before: megabyte, gigabyte, terabyte, then petabyte.
- So in bytes: a megabyte is a million, a gigabyte a billion, a terabyte a trillion and a petabyte a quadrillion.
Have a goUsing just the ladder: how many kilobytes are in one gigabyte?
1,000,000 (a million).
A gigabyte is 1000 megabytes and each megabyte is 1000 kilobytes, so it's 1000 × 1000, not just 1000.
- Bytes to bits means going down to a smaller unit, so multiply by 8: 50 bytes is 50 × 8 = 400 bits.
- Going up to a bigger unit, divide: 3000 kilobytes is 3000 ÷ 1000 = 3 megabytes.
Have a goYou're turning 7000 kilobytes into megabytes. Will the number get bigger or smaller, and what do you do?
Smaller: 7000 ÷ 1000 = 7 megabytes.
A megabyte is a bigger unit, so you need fewer of them. That means dividing, never multiplying.
- Some conversions take two steps. 40,000 bits ÷ 8 = 5,000 bytes, then ÷ 1000 = 5 kilobytes.
- A sound recording's total bits are the sample rate × the sample resolution × the number of seconds.
- 8-bit ASCII uses 1 byte per character, so 50,000 characters is 50,000 bytes, which is 50 kilobytes.
The big picture
A byte is 8 bits, and each step up the byte multiples (kilobyte, megabyte, gigabyte, terabyte, petabyte) is a factor of 1000. To convert, decide whether you are going up to a bigger unit (divide) or down to a smaller one (multiply), and whether the step is between bits and bytes (use 8) or between byte multiples (use 1000). A sound recording's size in bits is sample rate × sample resolution × seconds, and 8-bit ASCII text uses 1 byte per character.
Key points
Worked example
Problem
A text file is saved in 8-bit ASCII and has 12,000 characters. How big is it in kilobytes, and how big in bits?
⚠ Watch out
Always multiplying. Multiplying only works when you go down to a smaller unit, like bytes to bits. Heading up to a bigger unit, like kilobytes to megabytes, you divide. Ask 'bigger or smaller?' before you touch the calculator.
Memory hook
Up divides, down multiplies. Eight at the bottom of the ladder, a thousand on every other rung.
Check yourself
In your own words: how do you decide whether to multiply or divide, and how do you decide whether to use 8 or 1000?
Flashcards
(12)What is a bit?
How many bits are in a byte?
How many bytes are in a kilobyte?
How many of each unit make the next one up: megabytes in a gigabyte, gigabytes in a terabyte?
How many bytes are in a megabyte?
How many bytes are in a gigabyte, a terabyte and a petabyte?
Why do we convert units of data size?
Which two numbers do you remember for converting data sizes?
Going up to a bigger unit: multiply or divide? And down to a smaller one?
How do you turn bytes into bits?
What is the formula for the total bits in a sound recording?
How many bytes does each character use in 8-bit ASCII?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore OCR GCSE Computer Science topics
How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.