Skip to content
Storgy

Character analysis

X-Ray (Rex)

in Holes by Louis Sachar

X-Ray (Rex) is the self-proclaimed leader of Group D at Camp Green Lake, commanding social authority that far exceeds his small size and poor eyesight—his nickname is a playful twist in pig Latin, reflecting his struggle to see without his thick glasses. Having survived the camp long enough, he has established a strict pecking order and maintains it through a mix of charm, intimidation, and strategically handing out favors.

The most significant moment for X-Ray arises when Stanley discovers what looks like a gold tube engraved with the initials "KB." Instead of reporting it himself, Stanley gives it to X-Ray, who keeps it overnight and presents it to the Warden the following morning. This tactic earns X-Ray a prized day off from digging—showing his main characteristic: he puts personal gain and status preservation above fairness or solidarity. He instructs the other boys to inform him first whenever they find anything, solidifying his position as the gatekeeper between the campers and the camp authorities.

X-Ray's character remains mostly unchanged; he doesn't undergo the moral development that Stanley and Zero do. He remains a product of the camp's harsh social environment—someone who has adapted by becoming a minor tyrant instead of challenging the system. However, he isn't entirely villainous: he gives Stanley a better spot in the digging line, a small but significant gesture of inclusion that indicates Stanley has been accepted by the group. X-Ray thus serves as a reflection of how oppressive settings can distort peer relationships while still allowing moments of genuine camaraderie.

About this character

Form
Novel
Author
Louis Sachar
First published
1998

The person01–03

01·Who they are

Who is X-Ray (Rex)?

X-Ray — real name Rex — is the self-appointed leader of Group D at Camp Green Lake. Louis Sachar introduces him as a study in contradictions: physically small, genuinely half-blind without his thick glasses, yet socially dominant in every interaction. His nickname is a clue to his character. "X-Ray" is pig Latin for "Rex," a royal title, and the joke cuts both ways — he cannot literally see well, yet he reads the social landscape of the camp with sharp opportunism. Sachar uses this irony deliberately: X-Ray's power is built not on strength or size but on information, timing, and the unspoken threat of exclusion. He has simply been at Camp Green Lake longer than most, and survival has taught him to convert seniority into authority.

02·Arc & motivation

What is X-Ray (Rex)'s arc and motivation?

Unlike Stanley, who arrives naïve and leaves transformed, or Zero, whose interior life gradually opens across the novel, X-Ray follows a flat arc — and that flatness is precisely Sachar's point. He begins the novel as Group D's gatekeeper and ends it the same way. His core motivation is self-preservation dressed up as leadership. He does not dig particularly deep holes or defy the Warden; instead, he manages his position within the system rather than challenging it. The camp's brutal logic has shaped him into a minor tyrant: someone who survives oppression by replicating its structures on a smaller scale. There is no villain speech, no moment of reckoning. X-Ray simply endures, and Sachar asks the reader to sit with the discomfort of that.

03·Key moments

What are X-Ray (Rex)'s key moments?

The defining scene arrives when Stanley unearths what appears to be a gold lipstick tube engraved with the initials "KB" (Chapters 13–14). Rather than reporting the find himself — which would earn him the reward — Stanley hands it to X-Ray. X-Ray keeps the object overnight and presents it to the Warden the following morning, timing the reveal for maximum advantage and securing himself a full rest day from digging. The choreography here is telling: X-Ray does not stumble upon the opportunity; he manufactures the moment. He also issues a standing order to the group — anything interesting found goes to him first — consolidating himself as the middleman between the boys and camp authority.

A quieter but equally significant moment is X-Ray's decision to give Stanley a better position in the digging line. It is a small gesture by any measure, but within Camp Green Lake's economy of small mercies, it signals genuine acceptance. Stanley is no longer an outsider; he is now a participant in X-Ray's network, which comes with both protection and moral compromise.

The cast04–05

04·Relationships

What are X-Ray (Rex)'s most important relationships?

Stanley Yelnats: X-Ray identifies Stanley quickly as useful and non-threatening. Their relationship is transactional from the start — Stanley offers the KB tube, X-Ray offers belonging — yet Sachar resists making it purely cynical. The spot in the digging line is a real kindness by camp standards, and Stanley's willingness to hand over the tube makes him complicit in X-Ray's scheme. The dynamic illustrates how the camp corrupts even acts of generosity.

Zero (Hector Zeroni): X-Ray treats Zero with open contempt, dismissing him as unintelligent and positioning him at the very bottom of Group D's hierarchy. This contempt functions as dramatic irony: the reader comes to understand Zero's depth while X-Ray never does. Their relationship throws X-Ray's limitations into sharp relief — he can read power dynamics but is blind to human complexity.

The Warden: X-Ray performs leadership for the Warden the way a mid-level manager performs competence for an executive. He controls what little he can, but the Warden holds every real lever. His authority over Group D exists only within the margin she allows, and the KB tube scene makes this hierarchy visible — he wins a rest day, she gets closer to her treasure.

Squid, Armpit, Zigzag, Magnet: These boys form X-Ray's court. Squid and Armpit offer steady deference; Zigzag's volatile temper creates occasional friction even within the hierarchy, suggesting X-Ray's control is never entirely secure; Magnet's facility with nicknames mirrors the same culture of coded identity that produced "X-Ray" in the first place.

05·Connected characters

How is X-Ray (Rex) connected to the other characters?

Stanley Yelnats IV

X-Ray quickly sizes Stanley up as useful rather than threatening. He accepts the gold tube from Stanley and rewards him with a better position in the digging line, making Stanley complicit in his scheme while also offering him a degree of group belonging. Their relationship illustrates the transactional nature of power at Camp Green Lake.

Hector Zeroni (Zero)

X-Ray treats Zero with open contempt, viewing him as the lowest-status member of Group D and dismissing his intelligence entirely. This dynamic underscores the camp's internal hierarchy and contrasts sharply with the genuine friendship Zero develops with Stanley.

The Warden (Louise Walker)

X-Ray's relationship with the Warden is one of calculated performance. He presents the KB tube to her hoping to win favor and a rest day, but the Warden ultimately controls all real power; X-Ray's 'leadership' exists only within the narrow space she permits.

Squid (Alan)

Squid is one of X-Ray's loyal lieutenants, reinforcing X-Ray's authority through compliance and peer pressure, and helping maintain the group's social order.

Armpit (Theodore)

Like Squid, Armpit defers to X-Ray's leadership, forming part of the inner circle that upholds his dominance over Group D.

Zigzag (Ricky)

Zigzag also operates within X-Ray's orbit, contributing to the group dynamic that X-Ray orchestrates, though Zigzag's volatile temper occasionally creates tension even within the hierarchy.

Magnet (José)

Magnet rounds out the core group under X-Ray's informal command, and his nickname-giving role in the group reflects the same culture of coded identity that X-Ray himself embodies.

Study06–07

06·Questions

Questions readers ask about X-Ray (Rex)

What does X-Ray's nickname actually mean?

"X-Ray" is pig Latin for "Rex," his real name, which itself means "king" — a joke that cuts both ways. He claims royal-sounding authority despite being physically small and nearly blind without his thick glasses. Sachar uses the name as deliberate irony: X-Ray reads the social landscape of Camp Green Lake with sharp opportunism, yet cannot see beyond power dynamics to recognize genuine human complexity in others, like Zero.

What does X-Ray do with the gold tube Stanley finds?

X-Ray keeps the engraved gold tube Stanley discovers overnight and presents it to the Warden himself the following morning, timing the reveal for maximum personal advantage and earning himself a full rest day from digging (Chapters 13–14). He issues a standing order to Group D: anything interesting found must come to him first. The move shows his core trait — self-preservation and status preservation above fairness or group solidarity.

Why does Stanley give X-Ray the gold tube instead of keeping it himself?

Stanley hands the tube to X-Ray because X-Ray is the unquestioned leader of Group D, and giving it to him is the price of belonging. The gesture earns Stanley a better spot in the digging line — a meaningful reward within Camp Green Lake's economy of small mercies — but it also makes Stanley complicit in X-Ray's scheme, illustrating how the camp corrupts even acts of generosity.

How does X-Ray treat Zero compared to Stanley?

X-Ray treats Zero with open contempt, dismissing him as unintelligent and positioning him at the very bottom of Group D's hierarchy, while he sizes Stanley up as useful and worth including. The contrast is one of the novel's key dramatic ironies: X-Ray, who prides himself on reading people, completely misses Zero's depth, whereas the reader gradually comes to understand Zero's inner life through his friendship with Stanley.

Does X-Ray change or grow over the course of Holes?

No — X-Ray follows a deliberately flat arc from beginning to end. He arrives as Group D's self-appointed gatekeeper and leaves exactly the same way. Sachar uses this stasis as a thematic point: the camp's brutal logic has shaped X-Ray into someone who survives oppression by replicating its structures on a smaller scale rather than challenging them, in sharp contrast to the moral transformation Stanley and Zero both undergo.

Is X-Ray a villain in Holes?

X-Ray is better described as a morally compromised survivor than an outright villain. He manipulates his peers and treats Zero with contempt, but he also gives Stanley a better position in the digging line — a genuine gesture of inclusion by camp standards. Sachar presents him as a product of an oppressive environment, someone whose minor tyranny reflects how unjust systems distort peer relationships without making every participant simply "evil."

What is X-Ray's relationship with the Warden?

X-Ray's relationship with the Warden is one of calculated performance in which the Warden holds every real lever of power. When he presents the KB tube to her, he wins a rest day — but she moves closer to the treasure she has been searching for all along. His authority over Group D exists only within the narrow margin she permits, making him function like a mid-level manager performing competence for an executive who controls everything above him.

Which boys in Group D are closest to X-Ray, and how do they support his authority?

Squid and Armpit serve as X-Ray's most reliable lieutenants, reinforcing his dominance through steady deference and peer pressure. Zigzag operates within his orbit as well, though Zigzag's volatile temper occasionally creates friction that reveals X-Ray's control is never entirely secure. Magnet rounds out the inner circle; his role as the group's nickname-giver mirrors the same culture of coded identity — real names replaced by telling aliases — that produced "X-Ray" in the first place.

07·Essay angles

Use this in your essay

Tool · Essay angles

  • Power without transformation: Argue that X-Ray's static arc is as thematically important as Stanley's growth

    what does it mean that adapting to an unjust system is presented as its own kind of trap?

  • Micro-tyranny and systemic oppression: Examine how X-Ray's control over Group D mirrors the Warden's control over the camp, suggesting that oppressive institutions reproduce their logic at every level.

  • The transactional self: Build a thesis on how X-Ray's relationships reduce people to their utility, and explore what Sachar implies about environments that make such thinking rational.

  • Irony in naming: The name "X-Ray" promises penetrating vision yet belongs to a character who cannot see Zero's intelligence or the limits of his own power

    how does Sachar use names throughout the novel to signal what characters cannot perceive about themselves?

  • Camaraderie versus hierarchy: The spot in the digging line complicates a purely negative reading of X-Ray. Is Sachar suggesting that genuine solidarity and exploitative hierarchy can coexist, and what does that ambiguity demand of the reader?