We exhibit an algorithm to compute a Dirichlet domain for a Fuchsian group Γ with cofinite area. As a consequence, we compute the invariants of Γ, including an explicit finite presentation for Γ. Let Γ ⊂ PSL2(R) be a Fuchsian group, a discrete group of orientationpreserving isometries of the upper half-plane H with hyperbolic metric d. A fundamental domain for Γ is a closed domain D ⊂ H such th...