Yes—by the standard ecological definition, an ecosystem includes both the living (biotic) community and the nonliving (abiotic) physical environment, together with the interactions between them; neither part alone is the ecosystem.

The definition that settles it

Ecosystem ecology uses the term for a bounded system in which organisms and their physical surroundings exchange matter and energy. The classic formulation, associated with Arthur Tansley's 1935 coinage, treats the ecosystem as including not just the organisms but the whole complex of physical factors forming what we call the environment. In practice, ecologists split an ecosystem into:

Biotic components: producers (plants, algae, some bacteria), consumers (herbivores, carnivores, omnivores, parasites), and decomposers/detritivores (fungi, bacteria, soil invertebrates). These include the living organisms plus their interactions—predation, competition, mutualism, decomposition—and often organic remains such as dead wood and leaf litter. Abiotic components: sunlight, temperature, water and humidity, soil minerals and texture, pH, salinity, dissolved oxygen, atmospheric gases, and physical disturbance regimes such as fire or tides.

The key point is that these are not two ecosystems sitting side by side. Energy flows and nutrients cycle through both. A forest's productivity depends on light and soil water; decomposition depends on temperature and moisture; the physical environment is itself modified by organisms (shade, soil formation, transpiration). The interaction is part of what makes it a system.

Why people get confused

"Biotic" and "ecosystem" are at different scales

The common confusion comes from nested vocabulary. A population is one species in an area; a community is all the interacting populations; an ecosystem is the community plus its abiotic environment. So a community is purely biotic, but an ecosystem is not. If a quiz asks "does a community include abiotic factors?" the answer is no; if it asks about an ecosystem, the answer is yes. Mixing those two terms produces most of the disagreement.

A useful counterexample: two ponds can have nearly identical fish and plant communities but very different ecosystems if one is acidic and nutrient-poor and the other is alkaline and fertile. The community alone doesn't capture that difference; the abiotic setting does.

Boundaries are defined by the observer

Ecosystems don't have natural, unambiguous edges. A pond, a watershed, a rotting log, a field, and the whole biosphere can each be treated as an ecosystem depending on the question. This is a modeling choice, not a contradiction. The abiotic content of a "log ecosystem" (moisture, decay temperature) differs from that of a "biome," but both include nonliving factors.

Sometimes "environment" means only the abiotic part

In everyday speech, "environment" can mean surroundings generally, and some textbooks use "environment" loosely for just the physical factors. In formal ecology, environment in the ecosystem context means the abiotic surroundings; ecosystem = community + environment. So "the environment is only abiotic" and "the ecosystem includes abiotic factors" can both be true statements about different words.

Human and managed systems

Agricultural fields, cities, and aquariums are often called ecosystems too. They include biotic and abiotic components (soil, water, climate, built structures) and human management as a driver. Some ecologists prefer "social-ecological system" or "coupled human-natural system" for clarity, but the biotic-plus-abiotic core still holds.

What the definition does not require

Including abiotic factors does not mean every abiotic factor must be measured. A study might focus on a single nutrient or on temperature while ignoring others; the ecosystem still conceptually contains them. Nor does "ecosystem" require a fixed size, a climax state, or self-sufficiency. And the definition doesn't imply that abiotic factors are more important than biotic ones—only that both are constitutive.

A practical test

Ask: If I removed the nonliving conditions—light, water, soil chemistry, temperature—would the described system still function as described? If the answer is no, the description is relying on abiotic components and is therefore an ecosystem-level account, not merely a community account. Conversely, if you can describe the system entirely in terms of species and their interactions, you are probably describing a community.

Bottom line

An ecosystem is the biotic community plus its abiotic environment, considered together with their interactions. The phrase "biotic and abiotic" is not an add-on; it is the definitional core. The only real ambiguity is terminological—community versus ecosystem, and loose versus technical uses of "environment"—not substantive.