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.

On I need to convert a data size. 2 branches to choose from.

Longer conversions just chain these steps together, one at a time. We use the 1000-based multiples throughout.

Build the ladder

Which unit is bigger?

Put these units of data in order of size. Commit to your order, then check it.

1 · Smallest unit7 · Largest unit
  1. gigabyte (GB)

  2. bit

  3. petabyte (PB)

  4. kilobyte (KB)

  5. byte

  6. terabyte (TB)

  7. megabyte (MB)

Chain the steps

Two conversions, one ladder

Work out (a) 40,000 bits in kilobytes, and (b) 4.8 MB in bits. Pick the missing step each time.

  1. (a) 40,000 bits to kilobytes is a trip up the ladder, so we divide. Bits to bytes comes first, and that step uses 8.
  2. missing step
Which line is step 2?

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.

1sampleRate = 2000
2resolution = 8
3seconds = 10
4bits = sampleRate * resolution * seconds
5bytes = bits / 8
6kilobytes = bytes / 1000
sampleRate
resolution
seconds
bits
bytes
kilobytes
Press Start to run the first line.
·

Ready when you are — step through one line at a time.

Check your direction

Where does it go wrong?

A student converts a 600-byte message into bits. One line of their working goes wrong. Which one?

A student's working — which line goes wrong?

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

1A byte is 8 bits. After that, every step up the ladder is another 1000.
2Bigger unit: divide. Smaller unit: multiply.
3Between bits and bytes, use 8. Between byte multiples, use 1000.
4For a longer conversion, take one step at a time and check the direction each time.
5A sound recording's bits = sample rate × sample resolution × seconds.
6In 8-bit ASCII text, 1 character is 1 byte.

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?
The smallest unit of data, represented as either a zero or a one.
How many bits are in a byte?
8.
How many bytes are in a kilobyte?
1000.
How many of each unit make the next one up: megabytes in a gigabyte, gigabytes in a terabyte?
1000 of each. The whole ladder above the byte goes up in steps of 1000.
How many bytes are in a megabyte?
A million.
How many bytes are in a gigabyte, a terabyte and a petabyte?
A billion, a trillion and a quadrillion.
Why do we convert units of data size?
The numbers can become unmanageable very quickly.
Which two numbers do you remember for converting data sizes?
8 (bits in a byte) and 1000 (bytes in a kilobyte).
Going up to a bigger unit: multiply or divide? And down to a smaller one?
Up: divide. Down: multiply.
How do you turn bytes into bits?
Multiply the number of bytes by 8.
What is the formula for the total bits in a sound recording?
Sample rate × sample resolution × number of seconds.
How many bytes does each character use in 8-bit ASCII?
1 byte, so 50,000 characters is 50,000 bytes, which is 50 kilobytes.

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 posted

More OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

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.