Let A be a triangular algebra over a commutative ring R. We study f -derivations d : A → A, i.e. linear maps, that act like derivations on a fixed multilinear polynomial f with coefficients from R. We show that every f -derivation d of A, where the sum of coefficients of the polynomial f is not zero, is a derivation.Mathematics Subject Classification. 16W25.