Yes—lighting is routinely mounted on an electrical box in a ceiling, provided the box is rated and supported for the fixture and the installation meets the electrical code in force where you live. The phrase you've used describes a normal, code-recognized arrangement rather than a workaround. What matters is which box, how it is supported, and what kind of light hangs from it—because those three things decide whether the installation is safe and legal.

What "a box in the ceiling" usually means

In North American residential construction, the box in a ceiling is almost always an electrical box (also called an outlet box or ceiling box) that serves one of two purposes: it contains the wiring splice and provides the mechanical anchor for a luminaire, or it is a fan-rated box designed to carry the extra weight and vibration of a ceiling fan, often with a light kit attached. Builders sometimes call a box a "pan box," "octagon box," "round box," or "ceiling box" depending on shape and material. The label on the box—molded into the plastic or stamped on the metal—tells you its listing and its weight rating.

The critical distinction is box type, not the mere presence of a box. A box listed for a luminaire is not automatically listed for a ceiling fan, and a box listed for a fan is not automatically listed for a heavy chandelier. The box must be listed and marked for the load you intend to hang.

Why the answer is "yes"—and where it stops

The National Electrical Code (NEC), which most U.S. jurisdictions adopt in some edition, addresses exactly this situation. Article 314 covers outlet boxes, and the sections on box support and luminaire support establish that boxes must be securely fastened and must support the luminaire. Boxes are listed by a testing laboratory (typically UL) for specific applications, and the listing includes a maximum fixture weight—commonly 50 pounds for a standard luminaire-rated ceiling box, with fan-rated boxes carrying their own fan and fixture weight limits. Those numbers are illustrative of common listings, not universal; the actual limit is whatever is printed on the box or its instructions.

So the practical rule is: match the light to the box's listing and weight rating, and make sure the box is rigidly supported by the building structure—not merely clipped to drywall. A box that is listed for a luminaire and fastened to a joist or to a listed fan brace can carry a typical ceiling light. A box that is loose, unsupported, or rated only for a lightweight fixture should not carry a heavy one.

Where the answer stops applying:

Heavy fixtures and chandeliers. Above the box's rated weight, you need a box or support system listed for that load, often with a separate strap or a fan-brace-style hanger. Ceiling fans with light kits. A fan-rated box is required; a standard luminaire box is not a substitute, because the fan's motion and weight exceed what a light-only box is listed to bear. Recessed and surface-mounted fixtures. A recessed "can" light is itself a luminaire with its own housing and listing, and it mounts differently from a box-mounted pendant or flush mount. A surface-mounted fixture may attach to a box, a mounting strap, or the housing, depending on the fixture's instructions. Suspended (pendant) fixtures. The box carries the weight through a canopy and stem or cord; the box and its support must be rated for the fixture, and the canopy must cover the box opening. Older or unlisted boxes. In older homes, a box may be nonmetallic, undersized, or unlisted. "There is a box" does not by itself mean "this box is suitable."

The code logic, in plain terms

Three requirements interact:

1: Secure support. The box must be fastened to the structure—typically to a joist, a listed brace, or a listed hanger—so it cannot pull loose. Boxes supported only by drywall or by a loose strap fail this test. 2: Listing for the application. The box must be listed for the luminaire (or fan) it carries, and the fixture must not exceed the listed weight. 3: Proper connections and enclosure. The wiring splice must be enclosed in the box, the fixture's canopy or housing must cover the opening, and the conductors must be connected with listed connectors. A light does not "hang from the box" in a way that leaves the splice exposed.

A common confusion: people ask whether a light can be mounted on a box, imagining the box as an obstacle. In practice the box is the intended mounting point—the fixture's mounting strap or canopy attaches to it, and the box anchors the whole assembly to the ceiling structure. The question is really about adequacy, not permissibility.

Mounting methods and what they imply

Flush-mount and semi-flush fixtures attach to a mounting strap screwed to the box; the canopy hides the box. These are common on standard luminaire boxes and are typically within the 50-pound class of rating when the box is properly supported.

Pendant and chandelier fixtures hang from a stem, chain, or cord attached to the box or to a strap. Weight and the box's listing govern; a heavy chandelier may need a listed heavy-duty box or a support that transfers load to the structure independently.

Ceiling fans with lights require a fan-rated box, and the fan's instructions specify the box rating. The light kit is part of the fan assembly and is covered by the fan's listing, not treated as a separate luminaire bolted to a light-only box.

Track and rail systems mount to a box or to a listed support and have their own listing and weight limits; the box provides the power feed and one anchor point, but the system's instructions govern.

Recessed housings are not "lights mounted on a box" in the same sense; the housing is the luminaire and the box may be integral or separate. This is a different product category and a different set of instructions.

Region, edition, and inspection realities

The NEC is a model code; states and localities adopt specific editions and sometimes amend them. A requirement that is clear in one edition or jurisdiction may differ in another, and local amendments can be stricter. Because no code text or local amendment is supplied here, treat the principles above as the stable core—support, listing, weight, enclosure—and verify the specific edition and local rules with the authority having jurisdiction (AHJ) before relying on a particular number or method. The reference date of November 14, 2026 does not verify any edition; code cycles change, and the applicable edition is whatever your jurisdiction has adopted.

In practice, an electrical inspection checks that the box is secure, that the fixture is listed and within the box's rating, and that the splice is enclosed. A box that "feels solid" but is not listed for the fixture can still fail inspection or, worse, fail in service.

Common misconceptions

"Any box can hold any light." False. Listing and weight rating control. "A fan box and a light box are interchangeable." False in the fan direction: a fan needs a fan-rated box. A fan-rated box can often carry a light, but the reverse is not true. "The box just needs to be there." False. It must be securely supported and properly sized and listed. "Drywall anchors are enough." Generally not for ceiling luminaires; the box must be fastened to structure or to a listed brace, per the box's listing and instructions. "If it turns on, it's fine." Electrical function does not demonstrate mechanical adequacy or code compliance.

A practical way to think about it

Ask three questions in order: What does the box say it is listed for? How is the box supported? What does the fixture weigh, and what do its instructions require? If the answers align—luminaire box, secure structural support, fixture within rating, splice enclosed—the light can be mounted on the box. If any answer is missing or mismatched, the box or the support needs to change before the light goes up. When in doubt, a licensed electrician can identify the box type and rating and confirm the local code edition; that is the reliable path for anything beyond a straightforward swap of a similar-weight fixture.

The short version: a ceiling light mounted on an electrical box is standard practice, and the box is the correct anchor—but only when the box is listed for that luminaire, properly supported, and not overloaded.