Seconds

When you arrange the seven notes of the music alphabet in the order of fourths from B you get B-E-A-D-G-C-F. From the first two letters B and E, you get minor seconds B-C, and E-F. From all other letters you get major seconds. In the table below, we will show the pairs of B-C and E-F notice how the bottom and the top notes in each column are also in the order of fourths.

Minor SecondsMajor SecondsMajor SecondsMajor SecondsMinor SecondsMinor Seconds
B-CB-C#B♭-CA-BA-B♭A#-B
E-FE-F#E♭-FD-ED-E♭D#-E
G-AG-A♭G#-A
C-DC-D♭C#-D
F-GF-G♭F#-G

You may have noticed that we can alter the sets that were naturally minor seconds (B-C and E-F) and turn them into major seconds when one either the first note is flatted or the second note sharped.  It changes the distance between the notes from one half-step to two.  Similarly, we can alter the sets that were naturally major seconds (A-B, D-E, G-A, C-D, and F-G) and make them minor when either the first note is sharped or the second note flatted.  This changes the distance from two half-steps to one.  This same sort of pattern appears with the other major/minor intervals.

Thirds

Take a look at thirds:

Minor ThirdsMajor ThirdsMajor ThirdsMajor ThirdsMinor ThirdsMinor Thirds
B-DB-D#B♭-DG-BG-B♭G#-B
E-GE-G#E♭-GC-EC-E♭C#-E
A-CA-C#A♭-CF-AF-A♭F#-A
D-FD-F#D♭-F

See?  if you flat the first note or sharp the second note in a minor third it becomes a major third (three half-steps to four), and vice versa for the major thirds to minor thirds (four half-steps to three). Same with sixths:

Minor SixthsMajor SixthsMajor SixthsMajor SixthsMinor SixthsMinor Sixths
B-GB-G#B♭-GD-BD-B♭D#-B
E-CE-C#E♭-CG-EG-E♭G#-E
A-FA-F#A♭-FC-AC-A♭C#-A
F-DF-D♭F#-D

Flat the first note or sharp the second in a minor sixth and it becomes a major sixth (eight half-steps to nine), and vice versa for the major sixths to minor sixths (nine half-steps to eight).  And the same with sevenths:

Minor SeventhsMajor SeventhsMajor SeventhsMajor SeventhsMinor SeventhsMinor Sevenths
B-AB-A#B♭-AC-BC-B♭C#-B
E-DE-D#E♭-DF-EF-E♭F#-E
A-GA-G#A♭-G
D-CD-C#D♭-C
G-FG-F#G♭-F

Flat the first note or sharp the second in a minor seventh and it becomes a major seventh (ten half-steps to eleven), and vice versa for the major seventh to minor seventh (eleven half-steps to ten).

Fourths

It is a little bit different with fourths and fifths because they are not major or minor, but either perfect, augmented, or diminished.

Perfect FourthsDim. FourthsAug. FourthsPerfect FourthsAug. Fourths
B-EB-E♭B-E#F-B♭F-B
E-AE-A♭E-A#F#-B
A-DA-D♭A-D#
D-GD-G♭D-G#
G-CG-C♭G-C#
C-FC-F♭C-F#

Here we can see that when we sharp the first note or flat the second in a perfect fourth it becomes diminished (five half-steps to four), and likewise if we sharp the second note in a perfect fourth it becomes augmented (five half-steps to six).

Perfect FifthsDim. FifthsAug. FifthsDim. FifthPerfect Fifth
E-BE-B♭E-B#B-FB-F#
A-EA-E♭A-E#
D-AD-A♭D-A#
G-DG-D♭G-D#
C-GC-G♭C-G#
F-CF-C♭F-C#

Fifths

Similarly for fifths, if we sharp the first note or flat the second it will become diminished (seven half-steps to six), and likewise if we sharp the second note in a perfect fourth it becomes augmented (seven half-steps to eight).

While the above charts may seem exhaustive, they are not a list of every interval.  You can also use knowledge of altered scale degrees to change the quality of any given interval.  Most common alterations are from major to minor, minor to major, and perfect to either diminished or augmented.

Narrowed by one half-step←Original Interval→Widened by one half-step
MinorMajorAugmented
DiminishedMinorMajor
DiminishedPerfectAugmented