Abstract. A set A of non-negative integers is called a Sidon set if all the sums a1+a2, with a1 ≤ a2 and a1, a2 ∈ A, are distinct. A well-known problem on Sidon sets is the determination of the maximum possible size F (n) of a Sidon subset of [n] = {0, 1, . . . , n − 1}. Results of Chowla, Erdős, Singer and Turán from the 1940s give that F (n) = (1 + o(1)) √ n. We study Sidon subsets of sparse random sets of integers, replacing the 'dense environment' [n] by a sparse, random subset R of [n], and ask how large a subset S ⊂ R can be, if we require that S should be a Sidon set.Let (1))n a . We show that there is a constant b = b(a) such that, almost surely, we have F ([n]m) = n b+o(1) . As it turns out, the function b = b(a) is a continuous, piecewise linear function of a that is non-differentiable at two 'critical' points: a = 1/3 and a = 2/3. Somewhat surprisingly, between those two points, the function b = b(a) is constant.Our approach is based on estimating the number of Sidon sets of a given cardinality contained in [n]. Our estimates also directly address a problem raised by Cameron and Erdős [On the number of sets of integers with various