We have demonstrated a compact and cost-effective ytterbium-doped all-fiber laser operating at 976 nm. By utilizing a commercially available ytterbium-doped fiber with a length of only 18 cm, we achieved a lasing power of 10.3 W, with a slope efficiency of 25.4%. To our knowledge, our work presents the shortest gain fiber ever documented in the literature capable of delivering tens-of-watt 976-nm lasing power. The design is compatible with conventional fiber components, simplifying the monolithic assembly process. Notably, the incorporation of such a short gain fiber obviated the need for additional measures to suppress the strong 1.03-µm emission.