MajwareMAJWARE
Image Pixel

(0028,0030)

Pixel Spacing

Keyword: PixelSpacing

Physical distance in the patient between the centres of adjacent pixels, in mm: first the spacing between rows (vertical), then the spacing between columns (horizontal).

Tag Attributes

Tag ID
(0028,0030)
Compact
00280030
Keyword
PixelSpacing
VR
DS — Decimal String
VM
2
Required
Type 1 — required, with a value
PS3.15
Not listed in PS3.15 Table E.1-1
Retired
No

Defined in

Image Plane Module

What Pixel Spacing contains

Pixel Spacing gives the physical size of a pixel in the patient: two values in millimetres, first the distance between the centres of adjacent rows, then between adjacent columns. Viewers compute distances and areas from it.

In CT and MR it is Type 1 in the Image Plane Module and describes the patient plane directly. In projection radiography the spacing at the detector is Imager Pixel Spacing (0018,1164); because the X-ray beam diverges, objects appear larger at the detector than they are in the patient, so measurements taken at detector scale overstate patient sizes.

The order matters for non-square pixels: row spacing (vertical) comes first and column spacing (horizontal) second, the opposite of the usual x, y order.

Determines the physical scale of the image for measurement tools. Incorrect Pixel Spacing causes wrong ruler measurements in PACS and calibration errors in radiography.

Group 0028 describes the pixel matrix and how stored pixel values are turned into displayed values.

Value format: DS (Decimal String), VM 2

(0028,0030) PixelSpacing has Value Representation DS (Decimal String) and Value Multiplicity 2, which means exactly two values, separated by backslashes (\).

DS — Decimal String

A fixed-point or floating-point number written as text, for example 0.5, -1024 or 1.2E-3. Leading and trailing spaces are allowed.

Length
16 bytes maximum
Characters
The digits 0–9, +, -, E, e, the period and the space.

Example value

0.703125\0.703125

Format mistakes to avoid

  • Writing a number at full floating-point precision can exceed 16 characters, which is invalid.
  • A comma as decimal separator (0,5) is invalid; DICOM always uses the period.

Where PixelSpacing appears

Defined inTypeMeaning
Image Plane ModulePS3.3 C.7.6.21Required, and it must have a value.

A module lists the attributes an object must or may carry. Many IODs (CT Image, MR Image, Secondary Capture and others) include the same module, and an IOD-specific module can make an attribute stricter than the general one.

De-identification (PS3.15)

Pixel Spacing is not listed in PS3.15 Table E.1-1, so the Basic Application Level Confidentiality Profile gives no specific action for it.

To see how de-identification changes your own files, try the free DICOM Anonymizer, which runs in the browser and uploads nothing.

In archives and migrations

Image pixel attributes must stay consistent with the Pixel Data. If images are recompressed during a move (for example to JPEG 2000), the transfer syntax changes and some of these values can change with it, so a lossless copy is the only way to keep them byte-for-byte identical.

Common errors and how to fix them

  • Measurements on radiographs are off by a constant factor

    The viewer measures at detector scale or the magnification correction is missing. Check which spacing attribute the viewer uses and whether the image carries Pixel Spacing, Imager Pixel Spacing or both.

  • Distances are wrong in one direction only

    The two values were swapped for non-square pixels. The first value is the row spacing (vertical).

Troubleshooting: PACS ruler giving wrong measurements? The #1 cause is incorrect Pixel Spacing. Verify against the modality's calibration certificate. DR systems are particularly susceptible when detector panels are swapped.

Check a file in seconds with the free DICOM Validator: it reads the header in your browser, lists the tags with their values, and flags missing or malformed key attributes.

Pixel Spacing: frequently asked questions

What is DICOM tag (0028,0030) Pixel Spacing?

Physical distance in the patient between the centres of adjacent pixels, in mm: first the spacing between rows (vertical), then the spacing between columns (horizontal). Pixel Spacing gives the physical size of a pixel in the patient: two values in millimetres, first the distance between the centres of adjacent rows, then between adjacent columns. Viewers compute distances and areas from it.

What VR and VM does Pixel Spacing (0028,0030) have?

(0028,0030) PixelSpacing has Value Representation DS (Decimal String) and Value Multiplicity 2, which means exactly two values, separated by backslashes (\). A fixed-point or floating-point number written as text, for example 0.5, -1024 or 1.2E-3. Leading and trailing spaces are allowed. Maximum length: 16 bytes maximum.

Is Pixel Spacing (0028,0030) required?

In the Image Plane Module (PS3.3 C.7.6.2) it is Type 1: required, and it must have a value.

How is Pixel Spacing handled when de-identifying DICOM files?

Pixel Spacing is not listed in PS3.15 Table E.1-1, so the Basic Application Level Confidentiality Profile gives no specific action for it.

How do I troubleshoot Pixel Spacing (0028,0030)?

PACS ruler giving wrong measurements? The #1 cause is incorrect Pixel Spacing. Verify against the modality's calibration certificate. DR systems are particularly susceptible when detector panels are swapped.

Which comes first in DICOM Pixel Spacing, x or y?

The row spacing comes first: the distance between the centres of adjacent rows, which is the vertical (y) size of a pixel. The column spacing, the horizontal (x) size, comes second.

Check PixelSpacing in your files

The free DICOM Validator lists every header tag and flags problems. Files stay in your browser.

Open DICOM Validator →

Remove patient data before sharing

The free DICOM Anonymizer applies a de-identification profile in your browser, with no upload.

Open DICOM Anonymizer →

Sources

Checked against the DICOM standard, release 2026d. Module Types, query keys and de-identification actions come from these tables:

More Image Pixel tags