A plug can physically be placed on a circuit that formerly fed a ceiling light, but whether it may legally and safely be installed at that ceiling location depends on the circuit's wiring, its overcurrent protection, the type of receptacle, and local electrical code—so the answer is "sometimes, under specific conditions," not a simple yes.

The question as phrased contains an ambiguity worth resolving at the outset. "A plug" could mean (a) a receptacle (outlet) installed in the ceiling box so that something can be plugged in up there, or (b) a plug-in cord-and-cap arrangement used to connect a fixture. The first is a wiring modification; the second is a fixture connection method. The two have different rules. This answer addresses the receptacle-in-the-ceiling interpretation primarily, because that is the usual meaning of the query, and treats the cord-connection interpretation separately.

Also note what is unknown. No jurisdiction, code edition, circuit description, wire gauge, breaker size, box type, or grounding status is supplied. The reference date of November 13, 2026, does not supply local amendments. What follows is the stable principle under North American electrical practice, chiefly the National Electrical Code (NEC) as widely adopted in the United States, with the caveat that the applicable edition and local amendments must be checked before work is done.

The Core Distinction: Lighting Circuit Versus General-Purpose Circuit

The decisive issue is not the box in the ceiling. It is the circuit behind it.

A circuit run for lighting only is typically sized and protected for modest, fixed loads. In much of American residential wiring, 14 AWG copper on a 15-ampere breaker or 12 AWG on a 20-ampere breaker serves lighting and general-purpose receptacle outlets together, which is why the same circuit often feeds both ceiling lights and wall outlets. Where that is the case, adding a receptacle at the ceiling box is, electrically speaking, adding another outlet to a general-purpose branch circuit—permissible in principle, subject to the rules below.

Problems arise in three common situations:

1: A circuit protected at a low rating for a specific fixture. Some installations use a 15-ampere or even smaller dedicated circuit, or a circuit with a reduced-size breaker, feeding only lighting. A receptacle on such a circuit is not automatically prohibited, but it must not be used for loads exceeding the circuit rating, and the receptacle rating must match the circuit. A 15-ampere receptacle on a 15-ampere circuit is fine; a 20-ampere receptacle requires a 20-ampere circuit.

2: A switch-leg-only box. Many ceiling boxes contain only a switched hot conductor and a neutral, with no unswitched hot. A receptacle fed from the switched leg is energized only when the switch is on, which is usually not what someone wants and can be confusing or unsafe for equipment expected to have continuous power. Bringing an unswitched hot to the box may require new cable.

3: A box fed through a dimmer or smart switch. Dimmers and many smart switches are not designed to feed receptacle loads, and some will be damaged or will misbehave. Receptacles on dimmed circuits are a code and practical problem.

There is also the reverse case: a ceiling box on a circuit that also serves wall receptacles is already a general-purpose circuit, and adding a ceiling receptacle changes little except the practical and code details of the receptacle itself.

The Box and Support Question

A ceiling box is listed and supported for a fixture load. Receptacles introduce a different kind of mechanical load: something plugged in hangs from the receptacle, and a cord hangs from the plug. The box must be rated and supported for that use. A box designed only for a luminaire with a specific mounting may not be acceptable for a receptacle, and the receptacle must be installed with a proper cover plate.

A receptacle facing down from a ceiling is exposed to gravity-assisted pull on cords. For a receptacle that will actually be used, a locking or twist-lock configuration, or a strain-relieved cord arrangement, is often more appropriate than an ordinary straight-blade receptacle. An ordinary receptacle in a ceiling is legal in many circumstances but invites a plug to fall or be pulled out.

Box fill is a separate limit. Adding a receptacle and its conductors to an existing box may exceed the box's cubic-inch capacity. This is calculated from conductor counts, devices, and clamps, and it is a real constraint in small ceiling boxes.

Grounding, Polarity, and the Equipment Ground

A receptacle requires a proper equipment grounding conductor (the bare or green wire) in most residential configurations, and the box must be grounded. Older two-wire ceiling circuits without a grounding conductor create a serious obstacle: replacing a luminaire with a receptacle generally requires a grounding means. There are narrow exceptions involving ground-fault protection and specific receptacle types, but these are conditional and jurisdiction-specific, and they should not be assumed. The safe and typical answer is that a grounding conductor must be present or provided.

Polarity matters: the neutral must be the identified conductor, and the hot must be switched or unswitched as intended. Reversed polarity at a ceiling box is a common legacy error and becomes more consequential when a receptacle invites cord-and-plug loads.

The Specific Code Provisions That Matter

Under NEC practice, receptacle outlets on general-purpose branch circuits are permitted in ceilings unless a specific prohibition applies. Several provisions bear directly on this:

GFCI protection. Receptacles in certain locations require ground-fault circuit interrupter protection. Whether a ceiling receptacle in a given room falls under those location-based rules depends on the room (for example, bathrooms, kitchens, garages, basements, outdoors, and laundry areas have specific rules). A ceiling receptacle in a bathroom, for instance, is in a location where GFCI protection is required for receptacles; a ceiling receptacle in a living room generally is not. The location, not the ceiling, controls.

AFCI protection. Branch circuits serving outlets in many dwelling areas require arc-fault circuit interrupter protection under recent editions. If the circuit was installed before that requirement and has not been updated, adding a receptacle does not necessarily trigger a retrofit, but new work and local rules vary.

Receptacle rating and circuit rating. A receptacle must not be rated lower than the circuit. A 20-ampere circuit needs 20-ampere receptacles (or a 15-ampere receptacle is permitted on a 20-ampere circuit only in the specific multi-outlet configuration the code allows; a single receptacle on a 20-ampere circuit must be 20-ampere rated). A 15-ampere circuit needs 15-ampere receptacles.

Tamper resistance. In dwelling units, receptacles generally must be tamper-resistant in the locations the code specifies. A ceiling receptacle in a dwelling is typically in a location where this applies.

Weatherproofing. Outdoors or in damp/wet locations, the receptacle and cover must be rated for the location. A ceiling location on a porch or in a carport is not automatically protected.

The governing point: the ceiling is a location, not a category. The applicable rules come from the room and the circuit, not from the fact that a light was there.

Practical Uses and Why They Usually Disappoint

People ask this question for a few recurring reasons, and each has a different best answer.

Powering a projector or ceiling-mounted device. This is the most reasonable use. A projector, a ceiling fan with a light, or a wireless access point can be plugged in at the ceiling, provided the circuit is suitable, the box is supported, and the connection is secure. For a projector, a receptacle is often preferable to a hardwired fixture, because it allows removal and replacement.

Powering a garage door opener. Garage ceiling receptacles are common and generally acceptable where the circuit and location rules are met, including GFCI requirements in garages. This is a well-established use.

Adding a general-use outlet in a room with no wall outlets nearby. This is usually a poor idea. A ceiling receptacle is inconvenient, invites cords to hang across the room, and creates trip and pull hazards. The better solution is a wall or floor receptacle, or a new circuit.

Replacing a light with an outlet to plug in a lamp. This is common in older homes and often reflects a desire for switched power. If the box is on a switched leg, the receptacle will be switched. That may be acceptable if the intent is a switched outlet, but the lamp cord will hang from the ceiling, which is impractical. The usual workaround is a switched wall receptacle or a fixture with an integral outlet.

Using the ceiling box as a junction for a cord-connected fixture. This is the second interpretation. A luminaire connected by a cord and plug is permitted in some configurations, but a ceiling location is generally not where cord-connected luminaires are used, and the cord must be protected from strain and physical damage. Most ceiling fixtures are hardwired for good reason.

The Switched-Leg Trap in Detail

Suppose a ceiling box has a black switched hot, a white neutral, and a ground, controlled by a wall switch. Installing a receptacle there produces an outlet that is dead when the switch is off. That is sometimes exactly what is wanted—a switched ceiling outlet for a device that should follow the switch. But it is frequently a surprise. If continuous power is needed, an unswitched hot must be brought to the box, which may mean running new cable from a nearby unswitched source, and that is a larger job than swapping a fixture for a receptacle.

A related trap: a ceiling box may be the end of a switch loop with no neutral at the switch, or with the neutral present only at the fixture. The wiring topology determines what is possible. A voltage tester and a careful look at the conductors are prerequisites, not optional steps.

The Dimmer and Smart-Switch Problem

Receptacles on dimmed circuits are a code concern and a practical one. Standard dimmers are not listed to supply receptacle outlets, and plugging in a device that expects full voltage can damage it or create a fire hazard. Smart switches that require a neutral and are designed for lighting loads may not tolerate receptacle loads, particularly inductive or motor loads. If the ceiling box is dimmer-controlled, converting it to a receptacle generally requires removing the dimmer and restoring a standard switch, or rewiring so the receptacle is not on the dimmed leg.

Cord-and-Plug Fixtures Versus Receptacles

If the actual intent is to hang a fixture that comes with a cord and plug, the question becomes whether a cord-connected luminaire may be used at a ceiling box. The general principle is that cord-connected fixtures are permitted where the cord is protected and the connection is accessible and secure, but ceiling installations typically use hardwired fixtures because cords hanging from ceilings are vulnerable. A cord-connected fixture at a ceiling is not categorically forbidden, but it is unusual and should be evaluated for strain relief and support. A receptacle in the ceiling box plus a short cord to the fixture is a workable arrangement if the receptacle is properly installed—this is essentially the projector case.

What Must Be Checked Before Anyone Proceeds

Because the query supplies no circuit details, the following are the specific unknowns that determine the answer:

1: Circuit rating and wire gauge at the panel and at the box. 2: Whether the box has an unswitched hot, a switched hot, a neutral, and a ground. 3: Whether the circuit is dimmed or controlled by a smart device. 4: Box type, support, and cubic capacity for a receptacle and cover. 5: Room type and location for GFCI, AFCI, tamper-resistance, and weatherproofing rules. 6: Local code edition and amendments, which vary by state and municipality in the United States and by province in Canada.

Without these, no one can say "yes" for a particular installation. What can be said is the principle: a ceiling location is not itself a bar to a receptacle, and the same circuit and location rules that govern wall receptacles govern ceiling ones. The common failure modes are switched legs, dimmed circuits, missing grounds, undersized boxes, and circuits protected at ratings that do not match the receptacle.

A Realistic Example and Its Counterexample

Consider a 1970s house with a living-room ceiling box fed by a 15-ampere circuit that also serves the wall receptacles in the room. The box has a switched hot from the wall switch, a neutral, and a ground, and the switch is a standard toggle. Replacing the ceiling fixture with a tamper-resistant 15-ampere receptacle, with a proper cover and adequate box fill, is electrically straightforward and generally permissible. The receptacle will be switched. If continuous power is wanted, the switch can be left on or the wiring reconfigured, but the switched behavior is the default.

Now consider a newer house where the same ceiling box is on a circuit dedicated to lighting and controlled by a dimmer, with no unswitched hot present. Installing a receptacle there is not a simple swap. The dimmer must go, an unswitched hot may need to be run, and the circuit's purpose changes from lighting-only to general-purpose. That is a different job with different code implications, and in some local interpretations it may require a permit and inspection.

The contrast shows why the question cannot be answered from the ceiling box alone.

Frequently Asked Questions

Is a ceiling outlet legal in the United States? In general, yes, subject to the circuit and location rules described above; the NEC does not prohibit receptacles in ceilings, and local amendments sometimes add restrictions.

Can I just put a plug adapter in the light socket? Socket-to-plug adapters exist and are sold, but they are intended for temporary use with lamps and small devices. They are not a substitute for a properly installed receptacle, they are limited by the fixture's wiring and socket rating, and they are a poor choice for anything with a motor or sustained load.

Can I run an extension cord from the ceiling? Extension cords are for temporary use. A cord hanging from a ceiling receptacle to a device below is a trip and pull hazard, and using cords as permanent wiring is not acceptable practice.

Does adding a ceiling receptacle require a permit? In many jurisdictions, adding a receptacle is permitted electrical work requiring a permit and inspection, though rules vary widely. This is a local question.

What if there is no ground wire? That is the classic obstacle. Options include running a new cable with a ground, using a GFCI-protected arrangement where local rules allow, or choosing a different location. It should not be solved by ignoring the ground.

Can a receptacle be installed in a fan-rated box? Fan-rated boxes are designed for fan support. A receptacle in such a box is possible in principle but must respect box fill and support; the fan rating does not by itself authorize or prohibit a receptacle.

Bottom Line

A plug—meaning a receptacle—can be placed where a ceiling light was, but only when the circuit is suitable for receptacle use, the box has the required conductors including a ground, the box and cover are appropriate, the location-based protection rules are met, and local code allows it. The frequent real-world obstacles are switched-only legs, dimmer control, missing grounds, and box limitations, not any blanket prohibition on ceiling receptacles. The second reading of "plug"—a cord-and-plug fixture connection at the ceiling—is a narrower and more situational matter. Because the query supplies no jurisdiction, code edition, or circuit details, the specific yes-or-no for any one installation remains unknown until those are established, and the work should be evaluated by a licensed electrician under the local code in force.